GraphQL API for the unofficial IMDB Rest APIs Omdb and IMDb JSON Api
- Clone repository
git clone https://github.com/lucasschejtman/imdb-graphql-flow && cd imdb-graphql-flow
- Install dependencies
npm install
- Run
npm run dev
(ornpm run build
to transpile) - Navigate to
http://localhost:3000/graphql
to use graphiql
{
Title(id: "tt0944947") {
... TitleFragment,
... on Movie {
Released
},
... on Series {
totalSeasons,
Episodes(fromSeason: 6) {
Title,
Director,
imdbRating,
Released
}
},
... on Episode {
Episode
}
},
Person(id: "nm0000115") {
title,
filmography(first: 2) {
title,
year
}
}
}
fragment TitleFragment on Title
{
Type,
Year,
Title,
Rated,
Awards,
imdbID,
Poster,
Runtime,
Country,
Language,
Metascore,
imdbVotes,
imdbRating,
Genre,
Writer,
Director,
Actors,
Released
}