BaseTimestamps
●db · /index·type
Managed timestamp fields every document carries. The Convex rows persist these as epoch-ms
numbers (preserving the source Mongo timestamps: true values across the migration); the seam
re-hydrates them to Date on read so the ~183 importers keep their Date-typed contract.
Properties
PROPTYPEDESCRIPTION
createdAt
Date
updatedAt
Date
Example
import type { BaseTimestamps } from '@nordcom/commerce-db';
function ageMs(doc: BaseTimestamps): number {
return Date.now() - doc.createdAt.getTime();
}Related
FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme