Skip to content
FacilityObject

A named sub-space within a Location — e.g. a room, court, or studio. A facility inherits its address from the parent location and adds a name plus optional instructions. Its booking / bookableSpots override the location's when configured on the facility, and otherwise inherit from the location. Sessions can target a facility directly (see ActivitySession.facility).

Fields

idID!
businessBusiness!
locationLocation!
nameString!
instructionsString

Optional free-text instructions specific to this facility (e.g. "Enter via the side door").

bookingBooking!

Effective booking status and capacity — the facility's own configuration when set, otherwise inherited from the parent location.

bookableSpotsBookingSpots

Effective bookable-spot layout — the facility's own layout when configured, otherwise the parent location's, or null when neither has one.

sessions[ActivitySession!]!

Activity sessions taking place in this facility. Sort defaults to startAt ASC, id ASC; pass sort: startDesc to return the most recent sessions first.

Arguments (5)
sortActivitySessionSort= "startAsc"
firstInt
includeAppointmentsBoolean= false

Include this facility's appointment bookings (source appointment) alongside class sessions. Defaults to false; the per-resource admin schedule passes true to overlay bookings.

Narrow to sessions created via any of the listed sources. Null or empty means "any source". appointment only takes effect together with includeAppointments: true (and the appointments feature); a public read can never surface appointment bookings.

Used in

Facility