Dami
03/18/2018, 11:00 PMKATT
03/18/2018, 11:16 PMaddProductToOrder
mutation here
https://github.com/KATT/shop/blob/master/api/src/schema.graphql#L24-L28
https://github.com/KATT/shop/blob/master/api/src/resolvers/Mutation/order.ts#L21-L93
Resolvers finds order based on id, checks if there’s an order row with the same product in it and either creates a row or ups quantityDami
03/18/2018, 11:20 PMDami
03/18/2018, 11:24 PMKATT
03/18/2018, 11:24 PMKATT
03/18/2018, 11:24 PMKATT
03/18/2018, 11:25 PMDami
03/18/2018, 11:26 PMKATT
03/18/2018, 11:26 PMDami
03/18/2018, 11:33 PMKATT
03/18/2018, 11:34 PM