Skip to content

Session

Fields

idID!
activityActivity
nameString

The session's explicit name override, resolved for the given locale and falling back to English. Defaults to the viewer's locale. Null when the session has no name of its own and inherits its activity's (localized) name.

Arguments (1)
localeLocale
startAtDateTime
originalStartAtDateTime

The date this session was first scheduled for, when it has since been rescheduled to a different time. Null when the session has never moved (or its earliest recorded slot matches the current startAt), so a present value always means "this is genuinely different from startAt" and the UI can render an "originally scheduled" note without its own comparison.

metadata[MetadataEntry!]!

Every metadata field stored on this session, already merged with its activity's: a key the session sets overrides the activity's value, and a key it doesn't set is inherited. That covers the well-known fields whose catalog entry lists both owners (sessions.accessibility, sessions.doors.offset, sessions.presentation.format, sessions.language), so a consumer never has to fetch the activity to resolve one.

priceInt!
confirmedAdmissionCountInt!

People confirmed into this session: the confirmed admissions of its confirmed bookings. Unlike admissionCount it leaves out the seats of a party still awaiting approval (requested).

registrationCountInt!

The same count as confirmedAdmissionCount, under its old name.

Deprecated. Use confirmedAdmissionCount.

The visitor's read of this session's remaining room, summarised so a public surface never has to print (or receive) the exact count. Places taken is exactly admissionCount — the same number capacity is enforced against — measured against the individual-registration limit, the session's own or inherited from its activity. So a waitlisted party, which is queued behind a place rather than holding one, does not make a session read as fuller than it will actually sell.

Null when a room read would be meaningless: a cancelled or completed session (there is nothing left to sell), an appointment (booking structure, which holds exactly one party), or a fixture between two competitors (a league or tournament session, whose players are entered at the activity rather than the session). Registration being closed does not null it — that is registration.status, a separate fact.

holdsPlacesBoolean!

Whether checking out of this session holds places: it has a limit to run out of — its own, or its activity's — so a checkout calls holdSessionPlaces before asking for a card. False for an uncapped session, which has nothing to hold.

waitlistCountInt!

Number of parties queued for this session: waitlisted and offered bookings.

freeCancellationUntilDateTime

The last moment a booking on this session can be cancelled for a full refund with nothing forfeited, under the activity's effective cancellation policy. Null when the policy never charges for cancelling (there is no deadline to name), or when it never refunds in full (there is no free window to close). The session's start is the latest it can be.

Spot-map layout, occupancy, and viewer-relative state for this session. Null when the session's location or facility has no spot map — in which case plain capacity applies instead.

Arguments (1)
holderKeyString

The checkout key the caller's holds were taken under, so an anonymous buyer can see which of the held spots are their own. Signed-in callers are matched on their user as well.

spotChangesUntilDateTime

Until when a booked buyer may move their own place to another free spot on this session's map (changeBookingSpot): the start, less the activity's RegistrationConfiguration.spotChanges.closesMinutesBeforeStart. Null when the activity doesn't allow spot changes, when the session has no spot map with spots to pick, or when it sells seats by ticket type (those are tickets, changed through the box office).

prices[Price!]!

Prices this session sells at, chosen and automatic together, in display order. A session with its own prices replaces the activity's defaults outright rather than merging with them; empty means it sells one undifferentiated spot at the activity's own price.

admissionCountInt!

How many places are taken: the seats of every booking that holds one — confirmed and requested — not a count of rows, since one booking can be a party of six. A queued party's seats are excluded: they are confirmed rows under a waitlisted or offered booking, which is queued behind a place rather than holding it, and the same set is what refuses the next buyer at checkout.

Confirmed bookings on this session, oldest first.

Arguments (3)
firstInt
afterString
statuses[BookingStatus!]

Include cancelled and waitlisted bookings alongside confirmed ones.

myBookingBooking

The viewer's own booking on this session, if they have one.

myWaitlistBookingBooking

The viewer's own queued or offered place here. Held apart from myBooking, which answers a different question — whether the viewer has a place — and would say yes to somebody who is only in line for one.

myGuestBookings[Booking!]!

Bookings on this session the viewer made for somebody other than themselves. Excludes their own, oldest first, so a card can render the first guest or two without re-sorting.

viewerTicketsRemainingInt

How many more tickets the viewer may buy for this session when a per-buyer limit applies: on a RegistrationConfiguration.highDemand on-sale, maxTicketsPerOrder less the seats the viewer already holds here across every order, never below zero. Checkout refuses a basket past it by the same rule, so a ticket picker stops at the smaller of this and maxTicketsPerOrder.

Null when no per-buyer limit applies: the session isn't a high-demand on-sale, sets no limit, or the viewer isn't signed in (a guest is only known by the email they check out with).

Viewer-scoped: an operation selecting it must never be served from the shared public result cache.

waitlistBookings[Booking!]!

Parties queued for a place, in the order they joined.

paymentResolutionPaymentResolution

Resolved payment options for the current user. Null when not authenticated.

When forGuest is true, options are computed for a registration the viewer is booking on behalf of someone else: regular memberships are excluded (their session balance covers the member only), and any membership with guest passes remaining is surfaced as a MembershipGuestPassPaymentOption instead.

places is how many places the viewer means to book on one order. An unlimited pass covers its holder's own place and no other, so BuyPassPaymentOption.passes offers one only when places is 1. Omitted, as builds from before unlimited passes send it, unlimited passes are left out of BuyPassPaymentOption.passes: those builds would offer one to a party whose booking it then can't pay for. A client whose party can grow after this loads sends the party it opens with and drops an unlimited pass itself once the party is bigger than one.

Arguments (2)
forGuestBoolean
placesInt
locationLocation

Staff assigned to this session. Merges assignments from the parent activity with any session-specific overrides.

lineupLineup

Who performs on this date: the session's own lineup when it has one, otherwise its activity's. Null when nothing is billed.

metadataValueString

Returns the value of the named metadata key, or null if not set. Names use reverse-DNS format, e.g. website.sessions.spotify.playlist.id.

Arguments (1)
nameString!
matchMatch

The single match played in this session — a league session is one match between two competitors. Null for non-league sessions, or a league session whose fixture has not been set. Only populated when the session's business has the leagues or tournaments feature enabled.

uiExtensions[UIExtensionInstance!]!

The installed UI extensions that render into target for this session, in the order they should be shown. Each carries its published script and the live query the host resolves for it against the extension API. Empty when no installed app extends the target, and for a business.* target unless the viewer is on the session's business's staff.

Arguments (1)
linkPreviewImageURL!

The 1200×630 card a messaging app or social site shows when this session's url.go is shared — the page's own og:image, version included, so a share sheet can show the preview exactly as it will arrive.

leagueUrlURL

This fixture inside its league's public page on the business site — the league's schedule, opened on this game (/@handle/leagues/:league/schedule/games/:session). What a scorer's "League" link and a match's "on Sessions" link open: never the business admin, which a player cannot read. Null when the session is not a fixture of a league, or its business has no public handle.

calendarCalendarUrl

Used in