Skip to content

FindClientArgs

Defined in: packages/core/src/api/find/client.ts:25

Client-side args for find. Extends GenericQueryClientParams to inherit ctx?: never, populate?: TPopulate, depth?: D, and skip?.

TCollectionSlug extends CollectionSlug = CollectionSlug

Collection slug.

TPopulate extends PopulateShape<TCollectionSlug> = PopulateShape<TCollectionSlug>

Populate object, narrowed against RelationshipKeysOf<TCollectionSlug>.

D extends number = number

Depth literal (0 = none). Inferred from depth.

optional auth?: undefined

Defined in: packages/core/src/api/types.ts:167

Discriminator: client args MUST NOT supply auth.

GenericQueryClientParams.auth


collection: TCollectionSlug

Defined in: packages/core/src/api/find/client.ts:30


optional ctx?: undefined

Defined in: packages/core/src/api/types.ts:169

Discriminator: client args MUST NOT supply ctx.

GenericQueryClientParams.ctx


optional depth?: D

Defined in: packages/core/src/api/types.ts:183

Auto-populate all relationship fields to this many levels.

Inferred as the literal D so a wrapper that threads D through to its return type narrows accordingly (depth: 2 → depth-populated doc). A non-literal number degrades to VexDocument via DepthPopulated’s guard. D defaults to number, so wrappers that do not thread it keep the plain passthrough they had before.

Use populate for documented consumer code; depth is internal.

GenericQueryClientParams.depth


optional limit?: number

Defined in: packages/core/src/api/find/client.ts:31


optional paginationOpts?: PaginationOptions

Defined in: packages/core/src/api/find/client.ts:32


optional populate?: TPopulate

Defined in: packages/core/src/api/types.ts:171

Recursive populate object, type-narrowed against RelationshipKeysOf<TCollectionSlug>.

GenericQueryClientParams.populate


optional skip?: boolean

Defined in: packages/core/src/api/types.ts:189

When true, the wrapper passes convexQuery’s "skip" sentinel instead of args, so the query is not issued. Use for conditional queries (e.g. an id that is not known yet) without violating the Rules of Hooks.

GenericQueryClientParams.skip