Skip to content

Instantly share code, notes, and snippets.

@SaraVieira
Created June 26, 2018 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SaraVieira/7ce54bd44b6a1f7bccaf616fbdd47ef4 to your computer and use it in GitHub Desktop.
Save SaraVieira/7ce54bd44b6a1f7bccaf616fbdd47ef4 to your computer and use it in GitHub Desktop.
const typeDefs = gql`
type Movie {
id: ID!
title: String
year: Int
}
type Query {
movies: [Movie]
movie(id: ID!): Movie
}
type Mutation {
addMovie(title: String, year: Int): Movie
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment