Objects
Objects in GraphQL represent the resources you can access. An object can contain a list of fields, which are specifically typed.
Cinema
The cinema object.
Fields
Name | Data Type | Description |
---|---|---|
key | Key! | An unique identifier for this object. |
name | String! | The name of the cinema. |
operator | CinemaOperator! | The operator name of the cinema. |
movie | CinemaMovie! | Look up a movie screened by the cinema using its key. Arguments: key : Key! - An unique identifier for this object. |
movies | CinemaMovieConnection! | Returns a list of available movies screened by this cinema. Arguments: 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. first : Uint - Returns the first n elements from the list. last : Uint - Returns the last n elements from the list. |
address | String! | The address of the cinema. |
postCode | String! | The post code of the cinema. |
stateCode | State! | The state code of the cinema. |
countryCode | Country! | The country code of the cinema. |
imageUrl | URI! | The URL of the logo of the cinema. |
hasShowtimes | Boolean! | Indicates whether this cinema has showtimes. |
countryCode | Country! | The country code of the cinema. |
isShutdown | Boolean! | Indicates if the cinema has been shutdown. |
isUnderMaintenance | Boolean! | Identifies if the cinema is under maintenance or not. |
createdAt | DateTime! | Identifies the date and time when the object was created. |
CinemaConnection
The list of cinemas.
Fields
Name | Data Type | Description |
---|---|---|
nodes | [Cinema!]! | The list of cinemas. |
pageInfo | PageInfo! | The page information to assist pagination. |
totalCount | Uint64! | Identifies the total count of items in the connection. |
CinemaMovie
Represents a movie screened at a cinema.
Fields
Name | Data Type | Description |
---|---|---|
key | Key! | An unique identifier for this object. |
title | String! | The title of the movie. |
originalTitle | String! | The original title of the movie. |
censorship | String! | The censor rating of the movie. Possible value are (U, TBC, P13, 18) |
plot | String! | The plot of the movie. |
mainTrailerUrl | URI | The main movie trailer video. (YouTube video link) |
portraitImageUrl | URI! | The portrait poster image URL of the movie. |
landscapeImageUrl | URI | The landscape poster image URL of the movie. |
showtimeCount | Uint! | Returns a count of how many showtimes there are on this object. |
languageCodes | [Language!]! | The language of the movie. |
showtimeDates | [String!]! | Returns a list of dates where this movie has showtimes. |
showtimes | MovieShowtimeConnection! | Returns a list of showtimes for this movie. Arguments: 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. first : Uint - Returns the first n elements from the list. last : Uint - Returns the last n elements from the list. date : Date! - The date of the showtimes. |
genres | String! | The genres of the movie. |
actors | [Actor!]! | The actors of the movie. |
images | [URI!]! | The images related to the movie. |
comments | The movie comments. (Upcoming Feature) | |
releaseDate | Date! | The date when the movie was released in cinemas. |
isAdvanceSales | Boolean! | Indicates if the movie is advance sales. |
isOnScreen | Boolean! | Indicates if the movie is on screening. |
isComingSoon | Boolean! | Indicates if the movie is upcoming screening. |
createdAt | DateTime! | Identifies the date and time when the object was created. |
lastUpdatedAt | DateTime! | Identifies the date and time when the object was updated. |
CinemaMovieConnection
The list of movies screened by a cinema.
Fields
Name | Data Type | Description |
---|---|---|
nodes | [CinemaMovie!]! | The list of movies screened by a cinema. |
pageInfo | PageInfo! | The page information to assist pagination. |
totalCount | Uint64! | Identifies the total count of items in the connection. |
Movie
The movie object.
Fields
Name | Data Type | Description |
---|---|---|
key | Key! | An unique identifier for this object. |
title | String! | The title of the movie. |
originalTitle | String! | The original title of the movie. |
censorship | String! | The censor rating of the movie. Possible value are (U, TBC, P13, 18) |
plot | String! | The plot of the movie. |
mainTrailerUrl | URI | The main movie trailer video. (YouTube video link) |
portraitImageUrl | URI! | The portrait poster image URL of the movie. |
landscapeImageUrl | URI | The landscape poster image URL of the movie. |
showtimeCount | Uint! | Returns a count of how many showtimes there are on this object. |
runTime | Uint! | The duration of the movie in minutes. |
showtimeDates | [String!]! | Returns a list of dates where this movie has showtimes. |
genres | String! | The genres of the movie. |
actors | [Actor!]! | The actors of the movie. |
images | [URI!]! | The images related to the movie. |
comments | The movie comments. (Upcoming Feature) | |
cinema | MovieCinema! | Look up a cinema screening this movie using its key. Arguments key : Key - The cinema key. |
cinemas | MovieCinemaConnection! | Return a list of available cinemas screening this movie. Arguments: 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. first : Uint - Returns the first n elements from the list. last : Uint - Returns the last n elements from the list. |
releaseDate | Date! | The date when the movie was released in cinemas. |
languageCodes | [Language!]! | The language of the movie. |
isAdvanceSales | Boolean! | Indicates if the movie is advance sales. |
isOnScreen | Boolean! | Indicates if the movie is on screening. |
isComingSoon | Boolean! | Indicates if the movie is upcoming screening. |
createdAt | DateTime! | Identifies the date and time when the object was created. |
lastUpdatedAt | DateTime! | Identifies the date and time when the object was updated. |
MovieConnection
The list of movies.
Fields
Name | Data Type | Description |
---|---|---|
nodes | [Movie!]! | The list of movies. |
pageInfo | PageInfo! | The page information to assist pagination. |
totalCount | Uint64! | Identifies the total count of items in the connection. |
MovieCinema
Represents a cinema screening a movie.
Fields
Name | Data Type | Description |
---|---|---|
key | Key! | An unique identifier for this object. |
name | String! | The name of the cinema. |
operator | CinemaOperator! | The operator name of the cinema. |
address | String! | The address of the cinema. |
postCode | String! | The post code of the cinema. |
stateCode | State! | The state code of the cinema. |
countryCode | Country! | The country code of the cinema. |
showtimes | MovieShowtimeConnection! | Returns a list of showtimes for the movie at this cinema. Arguments: 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. first : Uint - Returns the first n elements from the list. last : Uint - Returns the last n elements from the list. date : Date! - The date of the showtimes. |
imageUrl | URI! | The URL of the logo of the cinema. |
geopoint | GeoPoint! | The latitude and longitude of the cinema. |
isShutdown | Boolean! | Indicates if the cinema has been shutdown. |
isUnderMaintenance | Boolean! | Identifies if the cinema is under maintenance or not. |
createdAt | DateTime! | Identifies the date and time when the object was created. |
MovieCinemaConnection
The list of cinemas screening a movie.
Fields
Name | Data Type | Description |
---|---|---|
nodes | [MovieCinema!]! | The list of cinemas screening a movie. |
pageInfo | PageInfo! | The page information to assist pagination. |
totalCount | Uint64! | Identifies the total count of items in the connection. |
Actor
The actor object.
Fields
Name | Data Type | Description |
---|---|---|
name | String! | The actor name. |
characterName | String | The character name in the movie. |
avatarUrl | URI! | The avatar of the actor. |
MovieOrderSession
The movie order session object.
Fields
Name | Data Type | Description |
---|---|---|
key | Key! | An unique identifier for this object. |
sessionId | ID! | An unique session identifier of this object. |
cinema | Cinema! | The cinema object belongs to this object. |
movie | Movie! | The movie object belongs to this object. |
showtime | MovieShowtime! | The showtime object belongs to this object. |
seatLayout | CinemaHallLayout! | The cinema hall layout object belongs to this session. |
tickets | [MovieTicket!]! | Return the list of movie tickets. |
concessions | [MovieConcession!]! | Return the list of movie concessions. |
selectedSeats | [Seat!]! | Return the list of selected seats. |
hasExpiry | Boolean! | Indicates this order session has expiry. |
expiresIn | Int64! | The difference between current and expired time in seconds. |
expiredAt | DateTime! | Identifies the date and time when the object is going to expires. |
status | MovieOrderSessionStatus! | The current status of this object. |
createdAt | DateTime! | Identifies the date and time when the object was created. |
lastUpdatedAt | DateTime! | Identifies the date and time when the object was updated. |
MovieShowtime
The movie showtime object.
Fields
Name | Data Type | Description |
---|---|---|
key | Key! | An unique identifier for this object. |
hall | CinemaHall! | The hall object of this showtime. |
seatsLeft | Uint | The number of available seats left. |
screenAt | DateTime! | The date and time when showtime is played. |
date | Date! | The time when the showtime is played. |
time | String! | The time when the showtime is played. |
CinemaHall
The cinema hall object.
Fields
Name | Data Type | Description |
---|---|---|
id | ID! | The hall ID. |
type | String! | The hall type. |
name | String! | The hall name. |
MovieShowtimeConnection
The list of movie showtimes.
Fields
Name | Data Type | Description |
---|---|---|
nodes | MovieShowtime! | The list of movie showtimes. |
pageInfo | PageInfo! | The page information to assist pagination. |
totalCount | Uint64! | Identifies the total count of items in the connection. |
MovieTicket
The movie ticket object.
Fields
Name | Data Type | Description |
---|---|---|
key | String! | An unique identifier for this object. |
id | ID! | An unique identifier for this object. |
name | String! | The name of this ticket. |
type | String! | The type of this ticket. |
purchaseAmount | Money! | The purchase amount of this ticket. |
bookingAmount | Money! | The booking amount of this ticket. |
areaCode | Money! | The area code of the ticket. |
seatsAllocation | Uint! | The seats allocation of this ticket. |
hasBundle | Boolean! | Indicates the ticket whether the ticket has food and drinks selection (for Aurum halls). |
MovieConcession
The movie concession object.
Fields
Name | Data Type | Description |
---|---|---|
key | String! | An unique identifier for this object. |
id | ID! | An unique identifier for this object. |
name | String! | The name of this concession. |
description | String! | The description of this concession. |
imageUrl | URI! | The image url of this concession. |
purchaseAmount | Money! | The booking amount of this concession. |
isSoldOut | Boolean! | Indicates the concession is sold out. |
CinemaHallLayout
The cinema hall layout object.
Fields
Name | Data Type | Description |
---|---|---|
twoDimensionView | [SeatRow!]! | The 2D view of the seats. |
totalRow | Uint! | Total row of seats. |
totalColumn | Uint! | Total column of seats. |
SeatRow
The seat row object.
Fields
Name | Data Type | Description |
---|---|---|
label | String! | The row label. |
seats | [Seat]! | The seats of this row. |
Seat
The seat object.
Fields
Name | Data Type | Description |
---|---|---|
key | String! | An unique identifier for this object. |
type | SeatType! | The type of this seat. |
label | String! | The label of this seat. |
x | Uint! | The x-coordinate of this seat. |
y | Uint! | The y-coordinate of this seat. |
areaCode | String! | The area code of this seat. |
allocation | Uint! | The seats allocation of this seat. |
status | SeatStatus! | The status of this seat. |
User
The user object.
Fields
Name | Data Type | Description |
---|---|---|
key | Key! | An unique identifier for this object. |
email | String! | The email address of this user. |
CountryCode | String! | The country code of this user. |
phoneNo | String! | The phone number of this user. |
memberCards | [MemberCard!]! | The member cards of this user. |
movieOrders | MovieOrderConnection! | An unique identifier for this object. |
vouchers | VoucherConnection! | An unique identifier for this object. |
createdAt | DateTime! | Identifies the date and time when the object was created. |
MovieOrder
The movie order object.
Fields
Name | Data Type | Description |
---|---|---|
key | Key! | An unique identifier for this object. |
movie | Movie! | The movie of the order. |
cinema | Movie! | The cinema of the order. |
bookingId | String! | An external unique identifier related this object. |
transactionId | String! | |
currencyCode | String! | |
totalAmount | Money! | |
bookingAmount | Money! | |
payableAmount | Money! | |
expiresIn | Int64! | |
expiredAt | DateTime! | |
paidAt | DateTime! | |
qrCode | String! | |
status | OrderStatus! | |
createdAt | DateTime! | Identifies the date and time when the object was created. |
lastUpdatedAt | DateTime! | Identifies the date and time when the object was updated. |
MovieOrderConnection
The list of movie orders.
Fields
Name | Data Type | Description |
---|---|---|
nodes | MovieOrder! | The list of movie orders. |
pageInfo | PageInfo! | The page information to assist pagination. |
totalCount | Uint64! | Identifies the total count of items in the connection. |
VoucherConnection
The list of vouchers.
Fields
Name | Data Type | Description |
---|---|---|
nodes | Voucher! | The list of vouchers. |
pageInfo | PageInfo! | The page information to assist pagination. |
totalCount | Uint64! | Identifies the total count of items in the connection. |
GeoPoint
The latitude and longitude object.
Fields
Name | Data Type | Description |
---|---|---|
latitude | Float! | The latitude. |
longitude | Float! | The longitude. |
PageInfo
The page information to assist pagination.
Fields
Name | Data Type | Description |
---|---|---|
hasNextPage | Boolean! | A flag indicating if there are more pages to paginate forwards. |
hasPreviousPage | Boolean! | A flag indicating if there are more pages to paginate backwards. |
startCursor | Key | The cursor to be used to paginate backwards. |
endCursor | Key | The cursor to be used to paginate forwards. |