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
PROPTYPEDESCRIPTION
id
string
Example
import type { DocumentExtras } from '@nordcom/commerce-db';
function getId(doc: DocumentExtras): string {
return doc.id;
}Related
FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme