function getListingWithAttendeeRaw
getListingWithAttendeeRaw(
listingId: number,
attendeeId: number,
): Promise<ListingWithAttendeeRaw | null>

Read one listing and the attendee's booking rows on it in one round-trip. The attendee half is every line for THIS listing. A person booked on several listings has lines per listing. The listing-scoped routes act on the ones the address names, never on whichever line a scan reaches first. A person with no booking on the listing reads as no rows.

Parameters

listingId: number
attendeeId: number

Return Type

Promise<ListingWithAttendeeRaw | null>

Usage

import { getListingWithAttendeeRaw } from "docs/database.ts";