searchFuncRef
searchFuncRef<
TCollectionSlug,TPopulate,D>():FunctionReference<"query","public",VexSearchArgs,SearchReturn<TCollectionSlug,TPopulate,D>>
Defined in: packages/core/src/collections/api/networkQuery.ts:251
Casts vexConvexApi.search to the collection/populate/depth-narrowed type
for one call site.
Type Parameters
Section titled “Type Parameters”TCollectionSlug
Section titled “TCollectionSlug”TCollectionSlug extends string
TPopulate
Section titled “TPopulate”TPopulate extends ContainerPopulateShape<PopulateMapFor<TCollectionSlug>> = Record<string, never>
D extends number = 0
Returns
Section titled “Returns”FunctionReference<"query", "public", VexSearchArgs, SearchReturn<TCollectionSlug, TPopulate, D>>
The search function reference, typed to TCollectionSlug/TPopulate/D.
findFuncRef for why the cast is sound.