Skip to main content

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

NameData TypeDescription
keyKey!The key of the user.

Return Type: User!

cinemas

The list of cinemas.

Arguments

NameData TypeDescription
afterKeyTo return the elements in the list that comes after the specified cursor.
beforeKeyTo return the elements in the list that comes before the specified cursor. If both after and before is passed, before takes precedence.
firstUintReturns the first n elements from the list.
lastUintReturns the last n elements from the list.
cinemaOperatorCinemaOperatorSelect listings for cinemas owned by the specified cinema operator.
onScreenOnlyBooleanSelect only listings where the cinemas have showtimes.
includeMaintenanceBooleanSelect only listings where the cinema is under maintenance.
includeShutdownBooleanSelect only listings where the cinema is shutdown.

Return Type: CinemaConnection!

cinema

Look up cinema by key.

Arguments

NameData TypeDescription
keyKey!The key of the cinema.

Return Type: Cinema!

movies

The list of now showing or coming soon movies.

Arguments

NameData TypeDescription
afterKeyTo return the elements in the list that comes after the specified cursor.
beforeKeyTo return the elements in the list that comes before the specified cursor. If both after and before is passed, before takes precedence.
firstUintReturns the first n elements from the list.
lastUintReturns the last n elements from the list.
onScreenOnlyBooleanSelect only listings where the movies have showtimes.

Return Type: MovieConnection!

movie

Look up movie by key.

Arguments

NameData TypeDescription
keyKey!The key of the movie.

Return Type: Movie!

movieOrderSession

Look up movie order session by key.

Arguments

NameData TypeDescription
keyKey!The key of the movie.

Return Type: MovieOrderSession!

movieOrder

Look up movie order by key.

Arguments

NameData TypeDescription
keyKey!The key of the movie order.

Return Type: MovieOrder!