SELECT from Array of object where condition as object without name

I have query like

SELECT {"objects":  SELECT * FROM myarray.myobjects AS o WHERE ( LOWER(o.name) = LOWER("example1") OR LOWER(o.name) = LOWER("example2")),
...
} FROM ... WHERE ...

and my problem is that Im getting result

{
   "objects": {
       "o": {
           .....
         },
       "o": {
           .....
         }
   }
}

when using ARRAY o FOR o IN myarray.myobjects WHEN … istead o getting $1 etc
but I need result like:

{
   "objects": {
         {
           .....
         },
         {
           .....
         }
   }
}
SELECT 
            (SELECT o.* 
             FROM myarray.myobjects AS o 
             WHERE ( LOWER(o.name) = LOWER("example1") OR LOWER(o.name) = LOWER("example2"))) AS objects ,
             ...........
 FROM ... 
WHERE ...
1 Like