Hi All,

I have a couple of questions about how projections are supposed to work. Let’s say I had an Order that had a bunch of OrderLines. Do I then have a projection for each Order that contains all of its OrderLines? (All OrderLines for Order with id of 1, would be accessed through /projections/OrderLines-1) Or do I have one giant projection and then filter it somehow?

Assuming that I have an OrderLineAdded event, how would I define the above projection?

Finally, the projection handler function has a signature of function(event, state) { … }. What exactly are event and state, and does a value need to be returned?

Thanks,

Brian