getFuncRef
getFuncRef<
TCollectionSlug,TPopulate,D>():FunctionReference<"query","public",VexGetArgs,GetReturn<TCollectionSlug,TPopulate,D>>
Defined in: packages/core/src/collections/api/networkQuery.ts:232
Casts vexConvexApi.get 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", VexGetArgs, GetReturn<TCollectionSlug, TPopulate, D>>
The get function reference, typed to TCollectionSlug/TPopulate/D.
findFuncRef for why the cast is sound.