Let's say my data is structured like this in Payload...
{
"carts": [
{
"items": [{ "name": "banana" }]
},
{
"items": [{ "name": "banana" }, { "name": "apple" }]
},
{
"items": [{ "name": "orange" }]
}
]
}
I want to query only items that have the name "banana." How would I do that? Is it even possible? I've been trying to figure it out for the past 2 hours, but nothing is working.
Alright, I found a solution, but it's for my particular case, not for the example I gave above.
{
"ammenityCards.ammenityItems.ammenityItem": {
all: checkedAmenityIDs.join(","),
},
},
Star
Discord
online
Get dedicated engineering support directly from the Payload team.