xxczaki / Omdb Graphql Wrapper
Programming Languages
Projects that are alternatives of or similar to Omdb Graphql Wrapper
OMDb API GraphQL Wrapper
Setup a server:
- Clone this repository
- Run
npm install
- Get the OMDb API key and paste it in the
config.json
file - Run
npm run dev
to 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 build
and thennpm start
to start the server from the recently createddist
directory.
Usage
Check out the GraphQL documentation first!
Queries
Using the movie title:
{
ByTitle(title: "Matrix") {
Title
Year
Rated
Plot
Genre
}
}
Using IMDb ID
{
ById(id: "100") {
Director
Actors
Country
}
}
Fields:
Title
Returns: string
Title of the movie/tv show
Year
Returns: string
Year the movie was released
Rated
Returns: string
Movie rating (eg. 12+)
Released
Returns: string
Full date of release
Runtime
Returns: string
Runtime of the movie
Genre
Returns: string
Genre(s) of the movie
Director
Returns: string
Movie Director(s)
Writer
Returns: string
Movie Writer(s)
Actors
Returns: string
Actors
Plot
Returns: string
Plot
Language
Returns: string
Language(s)
Country
Returns: string
Country or countries where the movie was made
Awards
Returns: string
Awards
Poster
Returns: string
Link to a movie poster
Metascore
Returns: string
Metascore
imdbRating
Returns: string
Rating from IMDb
imdbVotes
Returns: string
Number of votes from IMDb
Type
Returns: string
Type (movie, tv show etc.)
DVD
Returns: string
DVD release date
BoxOffice
Returns: string
Box Office
Production
Returns: string
Production company
Website
Returns: string
Website of the movie
Response
Returns: string
Check, if there was a response from OMDb
License
MIT