Created
January 7, 2019 13:35
-
-
Save pallavtrivedi03/a1a7053308ae8af755ea17e74a6259d6 to your computer and use it in GitHub Desktop.
GraphQL schema for Movie
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
module.exports = {'movieBuildSchema':` | |
type Movie { | |
_id: ID! | |
title: String! | |
year: Int! | |
released: String! | |
genre: String! | |
director: String! | |
actors: String! | |
plot: String! | |
poster: String! | |
imdbRating: Float! | |
language: String! | |
runtime: Int! | |
} | |
input MovieInput { | |
title: String! | |
year: Int! | |
released: String! | |
genre: String! | |
director: String! | |
actors: String! | |
plot: String! | |
poster: String! | |
imdbRating: Float! | |
language: String! | |
runtime: Int! | |
} | |
type RootQuery { | |
movies: [Movie!]! | |
} | |
type RootMutation { | |
createMovie(movieInput: MovieInput): Movie | |
} | |
schema { | |
query: RootQuery | |
mutation: RootMutation | |
} | |
`}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment