{ class: 1, users: [{ name: 'abc', surname: 'def' }, { name: 'xyz', surname: 'wef' }, { name: 'abc', surname: 'pqr' }] }
I have a document structure like the one above and I want to return only users with the name "abc", but the problem is that it matches the name "abc" but returns all arrays. I want only consistent users.
Matching -
{ "class":"string", "users" : { "type" : "nested", "properties": { "name" : {"type": "string" }, "surname" : {"type": "string" } } } }
source share