Queries
14 root queries.
previewCheckoutPrice a basket without minting anything. Takes the same itemscheckoutdoes, so what a buyer previews and what they are charged cannot disagree — handtaxCalculationIdback tocheckoutto be charged the figure shown.purchase→ PurchaseOne order, by id. Readable by its buyer, and by anyone holding the id for an anonymous checkout — which is what lets a guest see their own receipt.booking→ BookingOne booking, by id.services→ Services!Third-party service configuration (Stripe keys, Mapbox tokens, etc.).me→ MeThe currently authenticated user and their passkeys.business→ BusinessactivitySessionstaffMemberOne staff member of the business the request is scoped to (the@handlewhose page is being viewed) — how a public profile sheet fetches the schedule behind a staff member it only knows the id of, without the page query carrying every member's sessions up front. Null when the request has no business scope, or the id belongs to another business or a removed member.bookingActivitySlots→ [AppointmentSlot!]!Open, bookable increments for astructure: bookingactivity within the[from, to]window — the activity's weekly windows minus the assigned resource's commitments, honoring its booking notice + advance window. Each slot is one increment; customers compose a longer booking from a contiguous run (bounded byminIncrements/maxIncrements). Empty when the activity isn't bookable or theappointmentsfeature is off.bookingActivityNextAvailability→ DateTimeThe start of the earliest open booking increment strictly afterafter(scanning forward up to a bounded horizon), so a booking calendar can jump the customer to the next day/week that actually has availability. Null when there's none within the horizon, the activity isn't bookable, or theappointmentsfeature is off. Passservicesfor aservices-priced activity so the opening spans the selection's full derived duration.product→ ProductcheckoutPreviewRead-only preview of what a customer would be charged at checkout for a product or activity, with optionaldiscountCodeandgiftCardCodeapplied. Used by checkout UIs to show line totals as the customer types. Returns per-field errors (invalid code, conditions not met, expired, etc.) instead of throwing.searchGlobal search across Sessions' public surfaces, used by the Cmd-K Go menu's contextual results. Today returns matching businesses; the result type will grow over time to surface favorite instructors, activities, and other public entities alongside without breaking the field name. Each list is capped atfirst(default 5, max 10); matches are case-insensitive substring matches on the entity's primary text columns. Returns empty lists for an empty query.pendingSocialSignUpThe social sign-in waiting on a confirmation in this browser, if any. Only ever non-null right after a popup-blocked social sign-in bounced back with?confirmSignUp=1: it reads the pending token out of its HttpOnly cookie so the app can ask about the account without the address ever travelling through the URL.