HydrateOptions
HydrateOptions
Options used to control which relations of the entity get hydrated when using the EntityHydrator helper.
Signature
interface HydrateOptions<Entity extends VendureEntity> {
relations: Array<EntityRelationPaths<Entity>>;
applyProductVariantPrices?: boolean;
}
Members
relations
Array<EntityRelationPaths<Entity>>
applyProductVariantPrices
boolean
false
true
, any ProductVariants will also have their price
and priceWithTax
fields
applied based on the current context. If prices are not required, this can be left false
which
will be slightly more efficient.