Last active
May 30, 2019 20:46
-
-
Save haldarmahesh/a4f4ca83ae4bee7e9b07cddb8e68cb80 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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