Skip to content

Instantly share code, notes, and snippets.

@haldarmahesh
Last active May 30, 2019 20:46
Show Gist options
  • Select an option

  • Save haldarmahesh/a4f4ca83ae4bee7e9b07cddb8e68cb80 to your computer and use it in GitHub Desktop.

Select an option

Save haldarmahesh/a4f4ca83ae4bee7e9b07cddb8e68cb80 to your computer and use it in GitHub Desktop.
type Query {
movie(category: String, year: Int): Movie # takes category and year as param and return Movie
movies: [Movie], # equivalent to GET /api/movies
actors: [Actor], # equivalent to GET /api/actors
actor(id: String): Actor # equivalent to GET /api/actors/{id}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment