- Clone this repository
- Run
npm install - Get the OMDb API key and paste it in the
config.jsonfile - Run
npm run devto start the server in the development mode - Go to localhost:2121 and play with the GraphQL Playground
- If you want to build the server, run
npm run buildand thennpm startto start the server from the recently createddistdirectory.
Check out the GraphQL documentation first!
Using the movie title:
{
ByTitle(title: "Matrix") {
Title
Year
Rated
Plot
Genre
}
}Using IMDb ID
{
ById(id: "100") {
Director
Actors
Country
}
}Returns: string
Title of the movie/tv show
Returns: string
Year the movie was released
Returns: string
Movie rating (eg. 12+)
Returns: string
Full date of release
Returns: string
Runtime of the movie
Returns: string
Genre(s) of the movie
Returns: string
Movie Director(s)
Returns: string
Movie Writer(s)
Returns: string
Actors
Returns: string
Plot
Returns: string
Language(s)
Returns: string
Country or countries where the movie was made
Returns: string
Awards
Returns: string
Link to a movie poster
Returns: string
Metascore
Returns: string
Rating from IMDb
Returns: string
Number of votes from IMDb
Returns: string
Type (movie, tv show etc.)
Returns: string
DVD release date
Returns: string
Box Office
Returns: string
Production company
Returns: string
Website of the movie
Returns: string
Check, if there was a response from OMDb
MIT