summaryrefslogtreecommitdiffstats
path: root/backend/src/resolvers/Mutation.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-02-13 17:04:00 -0500
committerWes Bos <wesbos@gmail.com>2018-02-13 17:04:00 -0500
commita09b01abf7c03e6b7e43f2175e5a34501808821b (patch)
tree21ae6feb1d9ac1a07f045dffc24db406e2a4183b /backend/src/resolvers/Mutation.js
parentfa3ec3299b3fa33e5a699683beb96cfa4e6dd51d (diff)
omg it works
Diffstat (limited to 'backend/src/resolvers/Mutation.js')
-rw-r--r--backend/src/resolvers/Mutation.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/backend/src/resolvers/Mutation.js b/backend/src/resolvers/Mutation.js
index 1c071fe..6349109 100644
--- a/backend/src/resolvers/Mutation.js
+++ b/backend/src/resolvers/Mutation.js
@@ -251,14 +251,6 @@ const mutations = {
return ctx.db.mutation.deleteCartItem({
where: { id: args.id },
});
- // const userId = getUserId(ctx);
- // return ctx.db.query.user({ where: { id: userId } }, '{ id, cart { id, quantity }}');
- // const cartItem = await ctx.db.query.cartItem({
- // where: { id: args.id },
- // });
-
- // console.log(cartItem);
- // return cartItem;
},
async createOrder(parent, args, ctx, info) {
const userId = getUserId(ctx);