How to select data from many documents

My first document :

“id”: “uuid”,
“name”: “object”,
“tools”: [


And i have also N other documents (tools):
> {
> “id”: “id-N”,
> “name”: “tool-N”
> }

I want to SELECT all the names of documents(tools) that exist in the first document…
To get the follows result:



How should i do?

try this

SELECT tool[*].name
  FROM default obj 
  NEST default tool ON KEYS
 WHERE == "object"