<commit_before>import { gql } from "apollo-boost";

const ADD_MOVIE = gql`
  mutation AddMovie(
    $title: String
    $director: String
    $releaseDate: String
    $poster: Upload
    $formats: [Int]
  ) {
    addMovie(
      title: $title
      director: $director
      releaseDate: $releaseDate
      poster: $poster
      formats: $formats
    ) {
      id
      title
      director
      releaseDate
      poster
      formats {
        id
        name
      }
    }
  }
`;

const UPDATE_MOVIE = gql`
  mutation UpdateMovie(
    $id: Int
    $title: String
    $director: String
    $releaseDate: String
    $poster: Upload
    $formats: [Int]
  ) {
    updateMovie(
      id: $id
      title: $title
      director: $director
      releaseDate: $releaseDate
      poster: $poster
      formats: $formats
    ) {
      id
      title
      director
      releaseDate
      poster
      formats {
        id,
        name
      }
    }
  }
`;

export default {
  ADD_MOVIE,
  UPDATE_MOVIE
};
<commit_msg>remove comma on UDPATE_MOVIE mutation schema<commit_after>import { gql } from "apollo-boost";

const ADD_MOVIE = gql`
  mutation AddMovie(
    $title: String
    $director: String
    $releaseDate: String
    $poster: Upload
    $formats: [Int]
  ) {
    addMovie(
      title: $title
      director: $director
      releaseDate: $releaseDate
      poster: $poster
      formats: $formats
    ) {
      id
      title
      director
      releaseDate
      poster
      formats {
        id
        name
      }
    }
  }
`;

const UPDATE_MOVIE = gql`
  mutation UpdateMovie(
    $id: Int
    $title: String
    $director: String
    $releaseDate: String
    $poster: Upload
    $formats: [Int]
  ) {
    updateMovie(
      id: $id
      title: $title
      director: $director
      releaseDate: $releaseDate
      poster: $poster
      formats: $formats
    ) {
      id
      title
      director
      releaseDate
      poster
      formats {
        id
        name
      }
    }
  }
`;

export default {
  ADD_MOVIE,
  UPDATE_MOVIE
};

{'fraction_non_alphanumeric': 0.08723196881091617, 'fraction_numerical': 0.0, 'mean_word_length': 1.7228116710875332, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3285646', 'n_tokens_mistral': 709, 'n_tokens_neox': 688, 'n_words': 165}