convexIdentityQuery

db · /index·async function

Calls a deployed Convex query by path on an identity-authenticated client — the read-side companion of . No serverSecret is injected: the callee is expected to be a tenant-tier function that derives its scope from the validated identity the client's setAuth token carries (the CMSDATA-07 editor shell reads flow through this).

Signature

@nordcom/commerce-db
function convexIdentityQuery(client: ConvexHttpClient, name: string, args: Record<string, unknown>): Promise<Result>;

Parameters

NameTypeDescription
clientConvexHttpClient
namestring
argsRecord<string, unknown>

Returns

The function's result.

FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme

Sourcedb.ts:132Edit the JSDoc directly
Metadata@nordcom/commerce-db@0.1.0Open in GitHub ↗

On this page