schema {
query: Query
}
type Query {
title(imdbID: String!): Title
movie(imdbID: String!): Movie
series(imdbID: String!): Series
episode(imdbID: String!): Episode
search(title: String!, types: [TitleType], result: Int = 5): [Title]
}
interface Title {
imdbID: String
titleType: String
primaryTitle: String
originalTitle: String
isAdult: Int
startYear: Int
endYear: Int
runtime: Int
genres: [String]
averageRating: Float
numVotes: Int
}
type Movie implements Title {
imdbID: String
titleType: String
primaryTitle: String
originalTitle: String
isAdult: Int
startYear: Int
endYear: Int
runtime: Int
genres: [String]
averageRating: Float
numVotes: Int
}
type Series implements Title {
imdbID: String
titleType: String
primaryTitle: String
originalTitle: String
isAdult: Int
startYear: Int
endYear: Int
runtime: Int
genres: [String]
averageRating: Float
numVotes: Int
totalSeasons: Int
episodes(season: [Int]): [Episode]
}
type Episode implements Title {
imdbID: String
titleType: String
primaryTitle: String
originalTitle: String
isAdult: Int
startYear: Int
endYear: Int
runtime: Int
genres: [String]
averageRating: Float
numVotes: Int
seasonNumber: Int
episodeNumber: Int
series: Series
}
enum TitleType {
MOVIE
SERIES
EPISODE
}
forked from tarasglek/imdb-graphql
-
Notifications
You must be signed in to change notification settings - Fork 1
A GraphQL API for IMDB
License
baztar/imdb-graphql
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A GraphQL API for IMDB
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%