How to select doucemnts WITH KEYS from meta().id select statement


#1

I have a select statement where I gather meta().id and the result looks like:

[
  {
    "id": "type::77c0983d-aef1-4f9c-b1b4-50ea052ebde5"
  },
  {
    "id": "type::2be75034-400d-4a52-95a1-73449c750e89"
  }
]

How to I extend the query so that I can use the result above for a query like

SELECT * FROM `bucket` USE KEYS ?

#2

Ok its that simple: I just use

SELECT RAW meta().id FROM [...]

and get all ids as an array.

[
    "id": "type::77c0983d-aef1-4f9c-b1b4-50ea052ebde5",
    "id": "type::2be75034-400d-4a52-95a1-73449c750e89"
]