@cbnsndwch/zero-sources

SyncedQueryMetadata.inputSchema property

Home > @cbnsndwch/nest-zero-synced-queries > SyncedQueryMetadata > inputSchema

SyncedQueryMetadata.inputSchema property

Zod schema for validating query input arguments. Should be a tuple schema matching the expected arguments.

Signature:

inputSchema: z.ZodTypeAny;

Example

z.tuple([z.string(), z.number()]); // For (id: string, limit: number)
z.tuple([]); // For no arguments

How was this page?