Hi,
I have data like below
{
"instance": {
"items": [
{
"name": "name_1"
},
{
"name": "name_2"
}
]
}
}
items is an array and it can contains many values.
I am looking for a query to match only if
items.name = "name_1" is specific to one value
Doc 1
{
"instance": {
"items": [
{
"name": "name_1"
},
{
"name": "name_1"
}
]
}
}
Doc 2
{
"instance": {
"items": [
{
"name": "name_2"
},
{
"name": "name_2"
}
]
}
}
Doc 3
{
"instance": {
"items": [
{
"name": "name_1"
},
{
"name": "name_2"
}
]
}
}
example
- if items.name = name_1 , it should only return Doc_1
- if items.name = name_2, it should only return Doc_2
- if items.name = name_1, name_2, then it should return all three Docs.