Currently, I can do the following
ARRAY friend.name FOR friend IN friends END
which gives me an array of names for the array of friends. Suppose I want the array to contain objects like so
{
name: "John Doe",
status: "His status"
}
it is tempting to do something like
ARRAY friend.name, friend.status FOR friend IN friends END
However, this doesn’t work.
Any help would be greatly appreciated.