Creating an array of objects and dynamically assigning the object value

SELECT RAW OBJECT v.id : {'fullName': v.fullName, 'profilePicture': v.image}
           FOR v IN (SELECT META(u).id, u.fullName, u.image
                     FROM mybucket AS u
                     WHERE ..........) END;
2 Likes