DocumentExtras

db · /index·type

String id every document in this package exposes. For Convex-backed rows this is the PUBLIC id: the migrated Mongo ObjectId (legacyId) for shops and feature flags, the Convex document id string for the platform-global auth rows. The raw Convex _id is never surfaced.

Properties

id
string

Example

import type { DocumentExtras } from '@nordcom/commerce-db';
function getId(doc: DocumentExtras): string {
    return doc.id;
}

FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme

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

On this page