convexServerMutation

db · /index·async functionthrows When

Calls a deployed Convex serverMutation function by path — the write-side companion of . Every seam write performs exactly ONE call through this transport (one Convex transaction), which the single-mutation gate in lib/single-mutation-gate.ts enforces.

Signature

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

Parameters

NameTypeDescription
namestring
argsRecord<string, unknown>

Returns

The function's result.

Throws

When
the Convex URL or server secret is unset.

FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme

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

On this page