summaryrefslogtreecommitdiffstats
path: root/backend/src/resolvers/Query.js
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/resolvers/Query.js')
-rw-r--r--backend/src/resolvers/Query.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/src/resolvers/Query.js b/backend/src/resolvers/Query.js
index 2aa4f5c..e69a671 100644
--- a/backend/src/resolvers/Query.js
+++ b/backend/src/resolvers/Query.js
@@ -24,6 +24,7 @@ const Query = {
async orders(parent, args, ctx, info) {
const userId = getUserId(ctx);
+ console.log(info);
return ctx.db.query.orders(
{
where: {
@@ -33,6 +34,12 @@ const Query = {
info
);
},
+
+ async users(parent, args, ctx, info) {
+ console.log('TODO: check their permissions');
+ const userId = getUserId(ctx);
+ return ctx.db.query.users({}, info);
+ },
};
module.exports = Query;