Skip to content

buildFindArgs

buildFindArgs<TCollectionSlug, TPopulate, D>(args): VexFindArgs

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

Builds the find wire args — shared by @vexcms/react/client’s find() and vexFindQuery. A plain function (not an overloaded one like its callers): both consumers discriminate the paginated/array return shape at their OWN call sites, so this just needs to carry every field through.

TCollectionSlug extends string

TPopulate extends ContainerPopulateShape<PopulateMapFor<TCollectionSlug>>

D extends number

FindClientArgs<TCollectionSlug, TPopulate, D>

The caller’s find args (client-shaped: collection, populate, depth, limit, where, drafts, paginationOpts).

VexFindArgs

The wire-shaped VexFindArgs to send over the network.