Hi All,
In the product inventory data model of Product, there's a productRelationship attribute. I'm confused about the type "bundled".
Assume GSM is the parent product which has a SIM child product. Should it be modeled as
1.
{
"id": "P01",
"name": "GSM",
"productRelationship": [{
"type": "bundled",
"product": {
"id": "P02"
}
}]
}
{
"id": "P02",
"name": "SIM"
}
or
2.
{
"id": "P01",
"name": "GSM",
}
{
"id": "P02",
"name": "SIM"
"productRelationship": [{
"type": "bundled",
"product": {
"id": "P01"
}
}]
}
i.e. in type "bundled", does the parent point to child or child point to parent?
------------------------------
Shibin CK
Tecnotree
------------------------------