Skip to content

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.

TCollectionSlug extends string

TPopulate extends ContainerPopulateShape<PopulateMapFor<TCollectionSlug>> = Record<string, never>

D extends number = 0

FunctionReference<"query", "public", VexGetArgs, GetReturn<TCollectionSlug, TPopulate, D>>

The get function reference, typed to TCollectionSlug/TPopulate/D.

findFuncRef for why the cast is sound.