Hello @felixthekraut, @jphwang
I have nested json like yours my data example like this
{
"data": {
"Get": {
"Adata": [
{
"code": "prd002",
"description": "Savory Caesar Salad",
"ingredients": [
{
"code": "xxx",
"name": "Romaine lettuce",
"quantity": "100",
"unit": "gr"
},
{
"code": "xxx",
"name": "Grilled chicken",
"quantity": "100",
"unit": "gr"
},
{
"code": "xxx",
"name": "Parmesan cheese",
"quantity": "50",
"unit": "gr"
},
{
"code": "xxx",
"name": "Croutons",
"quantity": "30",
"unit": "gr"
},
{
"code": "xxx",
"name": "Caesar dressing",
"quantity": "20",
"unit": "gr"
}
],
"name": "Savory Caesar Salad",
"properties": [
{
"color": "#a02",
"region": "#c02",
"viscosity": "#b02"
}
]
},
{
"code": "prd001",
"description": "Sweet Strawberry Spinach Salad",
"ingredients": [
{
"code": "xxx",
"name": "Baby spinach",
"quantity": "100",
"unit": "gr"
},
{
"code": "xxx",
"name": "Strawberries",
"quantity": "100",
"unit": "gr"
},
{
"code": "xxx",
"name": "Goat cheese",
"quantity": "50",
"unit": "gr"
},
{
"code": "xxx",
"name": "Candied pecans",
"quantity": "30",
"unit": "gr"
},
{
"code": "xxx",
"name": "Balsamic glaze",
"quantity": "20",
"unit": "gr"
}
],
"name": "Sweet Strawberry Spinach Salad",
"properties": [
{
"color": "#a01",
"region": "#c01",
"viscosity": "#b01"
}
]
}
]
}
}
}
I want to create a GraphQL search using the ‘name’ and ‘quantity’ from the ‘ingredients’ key, and also use the ‘color’ value from the ‘properties’ key.
How can I achieve this?
Thanks for help and share