|
So I've been trying to figure out how to use ListTables but can't seem to figure out how to work with the resulting data. I've been doing something similar to this example from the documentation: ordersWithItems :: Query (Order Expr, ListTable Expr (Item Expr))
ordersWithItems = do
order <- each orderSchema
items <- aggregate $ listAgg <$> itemsFromOrder order
return (order, items)My understanding is that if I run a select statement on this I should get back the following: resultingOrderWithItems :: Statement () [(Order Result, ListTable Result (Item Result))]
resultingOrderWithItems = select ordersWithItemsThe trouble is I'm not sure what to do with |
Answered by
ocharles
Jan 4, 2023
Replies: 1 comment 3 replies
|
Is that actually what you get when you |
3 replies
Answer selected by
remeike
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is that actually what you get when you
select? I'm pretty sure aListTable Expr tshould turn into[t'], wheret'is whatevertwould transpose to in theResultcontext.