Service - Product Attributes: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 58: | Line 58: | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
relationshipType: " | relationshipType: "has_productAttributeLink", | ||
} | } | ||
{ | { | ||
relationshipType: " | relationshipType: "disabled_productAttributeLink", | ||
} | } | ||
{ | { | ||
relationshipType: " | relationshipType: "is_productAttribute", | ||
} | } | ||
{ | { | ||
relationshipType: " | relationshipType: "is_productAttributeLabel", | ||
} | } | ||
{ | { | ||
relationshipType: " | relationshipType: "has_productAttributeProperty", | ||
} | } | ||
{ | { | ||
relationshipType: " | relationshipType: "disabled_productAttributeProperty", | ||
} | } | ||
{ | { | ||
relationshipType: " | relationshipType: "is_productAttributePropertyLabel", | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 07:02, 16 August 2021
Overview
Manages Product Attributes and ProductAttributeLinks. Product Attributes can be shared by many Products, ProductAttributeLinks are used to create an attribute tree for one Product.
Repository
https://bitbucket.org/izara-market-products/izara-market-products-product-attributes/src/master/
DynamoDB tables
Standard Config Table Per Service
Configuration tags
..
LogicalResults
Stores results for any requests to perform logical searches on media links
{
resultId: xxx // eg: filterMainId for a single logical element
dataId: xxx // one productAttributeLinkId
}
- partition key: resultId
- sort key: dataId
Graph database
Service - Products Graph
Nodes
{
nodeLabel: "productAttributeLabel",
}
{
nodeLabel: "productAttribute",
}
{
nodeLabel: "productAttributeLink",
}
{
nodeLabel: "productAttributePropertyLabel",
}
{
nodeLabel: "productAttributeProperty",
}
- see DataSchemaLib
Relationships
{
relationshipType: "has_productAttributeLink",
}
{
relationshipType: "disabled_productAttributeLink",
}
{
relationshipType: "is_productAttribute",
}
{
relationshipType: "is_productAttributeLabel",
}
{
relationshipType: "has_productAttributeProperty",
}
{
relationshipType: "disabled_productAttributeProperty",
}
{
relationshipType: "is_productAttributePropertyLabel",
}
- see DataSchemaLib
Basic node schemas
Schema comes from BasicNodeSchemaLib
- productAttributeLabel
- productAttribute
- productAttributePropertyLabel
- productAttributeProperty