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.
Type Parameters
Section titled “Type Parameters”TCollectionSlug
Section titled “TCollectionSlug”TCollectionSlug extends string
TPopulate
Section titled “TPopulate”TPopulate extends ContainerPopulateShape<PopulateMapFor<TCollectionSlug>>
D extends number
Parameters
Section titled “Parameters”FindClientArgs<TCollectionSlug, TPopulate, D>
The caller’s find args (client-shaped: collection,
populate, depth, limit, where, drafts, paginationOpts).
Returns
Section titled “Returns”The wire-shaped VexFindArgs to send over the network.