Edit: I revised and deleted to clarify. The analogy goes... Every time I get a new customer, I want to automatically create 100 orders for them because I know all my customers want the same 100 items. But they need to be able to change the quantity after they sign up since they want different quantities. Right now I create 100 orders on the client side by .map()
ing through the array of 100 orders and doing createOrder
mutations in graphql (apollo), is there a better way to do this?
EDIT 2: I believe doing it on the server side at the database makes more sense. Any other advice appreciated.