Hi Please help me to write a suitable query for my task, I have list of products with different categories and associated attribute and tags. Here is two documents for two categories along with associated attribute list. There could be multiple attributes, just showing one.
{
"category": "blouses",
"attributes": [
{
"attribute": "women-blouse-neckline",
"tag": "round-neck"
}
]
}
{
"category": "dresses",
"attributes": [
{
"attribute": "women-dress-neckline",
"tag": "v-neck"
}
]
}
Now customer wants get list of products from both categories which are dresses
and blouses
, but along with that a specific case at attribute level is :
Fetch all the products from dresses where attribute is women-dress-neckline
and tag is v-neck
along with all the products from blouses where attribute is women-blouse-neckline
and tag is round-neck
.
Thanks.