Skip to content

SearchClientArgs

Defined in: packages/core/src/collections/api/networkQuery.ts:105

Client-side args for search.

FindClientArgs

TCollectionSlug extends CollectionSlug

TPopulate extends PopulateShape<TCollectionSlug>

D extends number = number

optional auth?: undefined

Defined in: packages/core/src/collections/api/types.ts:88

Discriminator: client args MUST NOT supply auth.

GenericQueryClientParams.auth


collection: TCollectionSlug

Defined in: packages/core/src/collections/api/networkQuery.ts:110


optional ctx?: undefined

Defined in: packages/core/src/collections/api/types.ts:90

Discriminator: client args MUST NOT supply ctx.

GenericQueryClientParams.ctx


optional depth?: D

Defined in: packages/core/src/collections/api/types.ts:104

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 drafts?: boolean

Defined in: packages/core/src/collections/api/types.ts:116

When true on a versioned collection, includes the document’s draft row alongside its published row — gated server-side on the readDrafts action. Ignored for a non-versioned collection.

GenericQueryClientParams.drafts


optional limit?: number

Defined in: packages/core/src/collections/api/networkQuery.ts:114


optional paginationOpts?: PaginationOptions

Defined in: packages/core/src/collections/api/networkQuery.ts:116


optional populate?: TPopulate

Defined in: packages/core/src/collections/api/types.ts:92

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

GenericQueryClientParams.populate


query: string

Defined in: packages/core/src/collections/api/networkQuery.ts:111


searchField: string

Defined in: packages/core/src/collections/api/networkQuery.ts:113


searchIndexName: string

Defined in: packages/core/src/collections/api/networkQuery.ts:112


optional skip?: boolean

Defined in: packages/core/src/collections/api/types.ts:110

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


optional where?: VexWhere<TCollectionSlug>

Defined in: packages/core/src/collections/api/networkQuery.ts:115