Skip to Content

ApiListInputSchema

const ApiListInputSchema: ZodObject<{ limit: ZodDefault<ZodPipe<ZodUnion<readonly [ZodInt, ZodPipe<ZodString, ZodTransform<number, string>>]>, ZodInt>>; startingAfter: ZodOptional<ZodUUID>; }, $strip>;

Keyset pagination: a page starts after the item whose id is startingAfter. limit also accepts the digits of a query string, so the schema that validates a request’s query validates a caller’s params too.

Last updated on