-
-
Save SaraVieira/7ce54bd44b6a1f7bccaf616fbdd47ef4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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