summaryrefslogtreecommitdiffstats
path: root/backend/src/resolvers/Query.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-04-05 16:52:40 -0400
committerWes Bos <wesbos@gmail.com>2018-04-05 16:52:40 -0400
commit41a86494f3caea96dd4ed32733310783e47b429d (patch)
tree344d94c5cb2966f9ddd49b9f7ab2ad02ed88bce7 /backend/src/resolvers/Query.js
parentfdc7ae6a0a0cced82791bd03cf575f2fa68fca99 (diff)
refactor
Diffstat (limited to 'backend/src/resolvers/Query.js')
-rw-r--r--backend/src/resolvers/Query.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/src/resolvers/Query.js b/backend/src/resolvers/Query.js
index e69a671..a34b484 100644
--- a/backend/src/resolvers/Query.js
+++ b/backend/src/resolvers/Query.js
@@ -3,6 +3,7 @@ const { forwardTo } = require('prisma-binding');
const Query = {
items(parent, args, ctx, info) {
+ console.log('ITEMS!');
// check auth
return ctx.db.query.items({ ...args }, info);
},
@@ -36,7 +37,7 @@ const Query = {
},
async users(parent, args, ctx, info) {
- console.log('TODO: check their permissions');
+ // TODO Permissions
const userId = getUserId(ctx);
return ctx.db.query.users({}, info);
},