Bernardo Ramos
unread,Oct 9, 2011, 8:37:04 AM10/9/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to UnQL
This is an idea to identify what must be returned:
(I don't know if this is already implemented...)
SELECT orders.items.idProduct, orders.items.qty
could return arrays: -- is this mode right? what do you think?
[
[2500, 1],
[2121, 3]
]
SELECT { orders.items.idProduct, orders.items.qty }
returns objects:
[
{idProduct: 2500, qty: 1},
{idProduct: 2121, qty: 3}
]
And using alias in one of them:
SELECT { id: orders.items.idProduct, orders.items.qty }
[
{id: 2500, qty: 1},
{id: 2121, qty: 3}
]