tickets
Lists the tickets of all events hosted by the companies you belong to.
Authorization is required; without it the field reports an error. Tickets of events hosted by other companies are
never included, and revoked tickets are part of the result, so check Ticket.isRevoked.
The query argument narrows the result: TicketFilter.eventId limits it to a single event and
TicketFilter.ticketTypeId to a single ticket type. When both are supplied, TicketFilter.ticketTypeId takes
precedence and the event is ignored. Omitting the query argument returns everything you are allowed to see.
The whole result is delivered in a single page. TicketQuery.first has to be supplied whenever the query argument is
given but does not limit the result, TicketQuery.after skips nothing, PageInfo.hasNextPage is always false, and
TicketConnection.totalCount is the number of TicketConnection.edges in the current response.
query GetTicketsOfEvent($query: TicketQuery) { tickets(query: $query) { totalCount edges { node { scanCode isRevoked ticketType { id } } } } }query GetTicketsOfEvent($query: TicketQuery) { tickets(query: $query) { totalCount edges { node { scanCode isRevoked ticketType { id } } } } }
To look up one known ticket instead, use ticket.
Arguments
| Argument | Description | Type |
|---|---|---|
| query | TicketQuery |
Type
This field resolves to TicketConnection!.