I have a query that’s returning the below result. It’s selecting a single object inside an array, however it’s returning it as an object instead of a list with just one object. Is there a way to leave the result inside an array? The specific object is my “property” object, i need it to be a properties array with just one “property” object.
SELECT meta(bn).id as _ID, meta(bn).cas as _CAS, bn.name
FIRST t FOR t IN properties WHEN t.id = “1111” END as property
FROM bucket-name
as bn
WHERE ANY t IN attributes SATISFIES t.id = “1111” END
[
{
"_CAS": 0000,
"_ID": "1111",
"name": "my name",
"property": {
"id": "1111",
"name": "my property name"
}
}
]