diff --git a/src/graphql/schema.js b/src/graphql/schema.js index c1209010e603e1207bab5e0796236f53137c09b6..9db49a7f6ee041cba7828726ed30a83a69728660 100644 --- a/src/graphql/schema.js +++ b/src/graphql/schema.js @@ -25,12 +25,14 @@ const typeDefs = ` `; const getAllVisibleGroups = (user) => { + console.log("getAllVisibleGroups gets called") // let group_ids = listGroups(user.id); return knex.select().from('groups')/*.whereIn('id', group_ids)*/; }; const getGroupIfVisible = (user, id) => { - return getAllVisibleGroups(user)/*.where('id', id).then(function(table) { + console.log("getGroupIfVisible gets called") + return getAllVisibleGroups(user).where('id', id)/*.then(function(table) { console.log(JSON.stringify(table,null,2))*/; }; @@ -40,7 +42,6 @@ const resolvers = { return getAllVisibleGroups(context.user); }, group: (obj, args, context) => { - console.log(args.id); return getGroupIfVisible(context.user, args.id); } }