From a09b01abf7c03e6b7e43f2175e5a34501808821b Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Tue, 13 Feb 2018 17:04:00 -0500 Subject: omg it works --- backend/src/resolvers/Mutation.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'backend/src/resolvers/Mutation.js') 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); -- cgit v1.3