function getListingWithActivityLogOrNull
getListingWithActivityLogOrNull(
listingId: number,
limit?: number,
): Promise<ListingWithActivityLog | null>

Get listing and its activity log in a single database round-trip. Uses batch API to reduce latency for remote databases.

Parameters

listingId: number
optional
limit: number = 100

Return Type

Promise<ListingWithActivityLog | null>

Usage

import { getListingWithActivityLogOrNull } from "doc.ts";