I have a shopping cart which consists accesses 4 db collections, Users, Orders, LineItems and ProductItems.
The Order collection looks like this:
The LineItems collections looks like this:
and the productItems collection looks like this:
I have a mapping for my create order service (which writes to the order collection as follows:
I am getting an error because I am passing a string for the userid instead of the user collection. Can you advise how to do this?