Skip to content

Commit

Permalink
VCST-1781: Add product dimensions (#11)
Browse files Browse the repository at this point in the history
feat: extends product document builder with product dimensions. Weight unit, weight, measure unit, height, width, length
  • Loading branch information
mihey8800 authored Sep 16, 2024
1 parent 29040a6 commit f5a66db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/VirtoCommerce.XCatalog.Core/Schemas/ProductType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,14 @@ public ProductType(IMediator mediator, IDataLoaderContextAccessor dataLoader)
resolve: context => context.Source.IndexedProduct.ImgSrc);

Field(d => d.IndexedProduct.OuterId, nullable: true).Description("The outer identifier");

Field(d => d.IndexedProduct.Gtin, nullable: true).Description("Global Trade Item Number (GTIN)");
Field(d => d.IndexedProduct.ManufacturerPartNumber, nullable: true).Description("Manufacturer Part Number (MPN)");
Field(d => d.IndexedProduct.WeightUnit, nullable: true).Description("Weight unit");
Field(d => d.IndexedProduct.Weight, nullable: true).Description("Weight");
Field(d => d.IndexedProduct.MeasureUnit, nullable: true).Description("Measure unit");
Field(d => d.IndexedProduct.Height, nullable: true).Description("Height");
Field(d => d.IndexedProduct.Width, nullable: true).Description("Width");
Field(d => d.IndexedProduct.Length, nullable: true).Description("Length");

Field<StringGraphType>(
"brandName",
Expand Down

0 comments on commit f5a66db

Please sign in to comment.