ReviewBase

db · /index·type

Document shape for a shop review. shop is the unified shop row id (a string ref), not an embedded shop document — reviews relate to shops by id, consistent with the shop==tenant collapse. Callers that need shop fields resolve the shop by this id rather than reading them off the review.

Definition

@nordcom/commerce-db
type ReviewBase = BaseDocument & { shop: string };

BaseDocument & { shop: string }

Example

import type { ReviewBase } from '@nordcom/commerce-db';
function reviewShopId(review: ReviewBase): string {
    return review.shop;
}

FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme

Metadata@nordcom/commerce-db@0.1.0Open in GitHub ↗

On this page