Queries
Every GraphQL schema has a root type for both queries and mutations. The query type defines GraphQL operations that retrieve data from the server.
user
Look up user by key.
Arguments
Name | Data Type | Description |
---|---|---|
key | Key! | The key of the user. |
Return Type: User!
cinemas
The list of cinemas.
Arguments
Name | Data Type | Description |
---|---|---|
after | Key | To return the elements in the list that comes after the specified cursor. |
before | Key | To return the elements in the list that comes before the specified cursor. If both after and before is passed, before takes precedence. |
first | Uint | Returns the first n elements from the list. |
last | Uint | Returns the last n elements from the list. |
cinemaOperator | CinemaOperator | Select listings for cinemas owned by the specified cinema operator. |
onScreenOnly | Boolean | Select only listings where the cinemas have showtimes. |
includeMaintenance | Boolean | Select only listings where the cinema is under maintenance. |
includeShutdown | Boolean | Select only listings where the cinema is shutdown. |
Return Type: CinemaConnection!
cinema
Look up cinema by key.
Arguments
Name | Data Type | Description |
---|---|---|
key | Key! | The key of the cinema. |
Return Type: Cinema!
movies
The list of now showing or coming soon movies.
Arguments
Name | Data Type | Description |
---|---|---|
after | Key | To return the elements in the list that comes after the specified cursor. |
before | Key | To return the elements in the list that comes before the specified cursor. If both after and before is passed, before takes precedence. |
first | Uint | Returns the first n elements from the list. |
last | Uint | Returns the last n elements from the list. |
onScreenOnly | Boolean | Select only listings where the movies have showtimes. |
Return Type: MovieConnection!
movie
Look up movie by key.
Arguments
Name | Data Type | Description |
---|---|---|
key | Key! | The key of the movie. |
Return Type: Movie!
movieOrderSession
Look up movie order session by key.
Arguments
Name | Data Type | Description |
---|---|---|
key | Key! | The key of the movie. |
Return Type: MovieOrderSession!
movieOrder
Look up movie order by key.
Arguments
Name | Data Type | Description |
---|---|---|
key | Key! | The key of the movie order. |
Return Type: MovieOrder!