convexIdentityMutation

db · /index·async function

Calls a deployed Convex mutation by path on an identity-authenticated client — the bearer-token companion to . 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, never from a shared-trust argument.

Signature

@nordcom/commerce-db
function convexIdentityMutation(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:112Edit the JSDoc directly
Metadata@nordcom/commerce-db@0.1.0Open in GitHub ↗

On this page