Skip to content

SearchClientArgs

Defined in: packages/core/src/api/search/client.ts:24

Client-side args for search. Extends GenericQueryClientParams to inherit ctx?: never and populate?: TPopulate.

TCollectionSlug extends CollectionSlug

Collection slug.

TPopulate extends PopulateShape<TCollectionSlug>

Populate object.

D extends number = number

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/search/client.ts:29


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/search/client.ts:33


optional paginationOpts?: PaginationOptions

Defined in: packages/core/src/api/search/client.ts:34


optional populate?: TPopulate

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

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

GenericQueryClientParams.populate


query: string

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


searchField: string

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


searchIndexName: string

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


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