{"size": 442, "ext": "js", "max_stars_repo_path": "src/graphql/mutations/comment.js", "max_stars_repo_name": "luizomf/graphql-course-front-end-with-apollo-client", "max_stars_repo_stars_event_min_datetime": "2021-07-11T19:17:24.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-28T15:20:39.000Z", "max_issues_repo_path": "src/graphql/mutations/comment.js", "max_issues_repo_name": "luizomf/graphql-course-front-end-with-apollo-client", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/graphql/mutations/comment.js", "max_forks_repo_name": "luizomf/graphql-course-front-end-with-apollo-client", "max_forks_repo_forks_event_min_datetime": "2021-09-28T15:20:44.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-28T15:20:44.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 24.5555555556, "max_line_length": 65, "alphanum_fraction": 0.6447963801}
import { gql } from '@apollo/client';
import { GQL_FRAGMENT_COMMENT } from '../fragments/comment';
import { GQL_FRAGMENT_USER } from '../fragments/user';

export const GQL_CREATE_COMMENT = gql`
  mutation CREATE_COMMENT($comment: String!, $postId: String!) {
    createComment(data: { comment: $comment, postId: $postId }) {
      ...comment
      user {
        ...user
      }
    }
  }

  ${GQL_FRAGMENT_COMMENT}
  ${GQL_FRAGMENT_USER}
`;
