ReviewBase
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
type ReviewBase = BaseDocument & { shop: string };BaseDocument & { shop: string }
Example
import type { ReviewBase } from '@nordcom/commerce-db';
function reviewShopId(review: ReviewBase): string {
return review.shop;
}Related
FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme
ResolvedShopTheme
Fullypopulated, platformdefaulted theme token map for a single shop. Every field carries a concrete platform default (sourced from apps/storefront/src/app/globa
ReviewService
Review service backed by the deployed db/reviews Convex functions. Method signatures preserved from the prior Mongoosebacked service so callsites are unchanged.