I have a document like this:
{ "baths": 2, "beds": 3, "id": "3225C", "addrs": [ { "line2": "", "line3": "", "state": "OH", "zip": "67845", "line1": "3225 ABC AVE", "city": "CLEVELAND" }, { "line2": "", "line3": "", "state": "FL", "zip": "32818", "line1": "2438 DEF AVE", "city": "ORLANDO" } ], "homeAddress": { "line2": "", "line3": "", "state": "FL", "zip": "32818", "line1": "1234 CHICOTA AVE", "city": "ORLANDO" }, "rentingAddresses": { "ownsObjects": true, "count": 0, "arrayManager": {}, "items": [] }, "mailAddress": [ "4561 RAYCO AVE", "", "", "ORLANDO", "FL", "32818" ] }
I am trying to find which clients have addrs where the state is in "OH". My aql request:
for client in clients.addrs filter client.state == "OH" return client
But I keep getting the [1563] list expected . Is there any other way to work with arrays?
source share