From f7bea2d1b7be2b70dceb25c9837f608b538e9cec Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Wed, 28 Feb 2018 15:28:15 -0500 Subject: what --- backend/src/resolvers/Query.js | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'backend/src/resolvers/Query.js') diff --git a/backend/src/resolvers/Query.js b/backend/src/resolvers/Query.js index 2aabdb7..262517a 100644 --- a/backend/src/resolvers/Query.js +++ b/backend/src/resolvers/Query.js @@ -8,27 +8,28 @@ const Query = { }, itemsConnection: forwardTo('db'), + order: forwardTo('db'), - feed(parent, args, ctx, info) { - return ctx.db.query.posts({}, info); - }, + // feed(parent, args, ctx, info) { + // return ctx.db.query.posts({}, info); + // }, - drafts(parent, args, ctx, info) { - // const id = getUserId(ctx); + // drafts(parent, args, ctx, info) { + // // const id = getUserId(ctx); - const where = { - isPublished: false, - // author: { - // id, - // }, - }; + // const where = { + // isPublished: false, + // // author: { + // // id, + // // }, + // }; - return ctx.db.query.posts({ where }, info); - }, + // return ctx.db.query.posts({ where }, info); + // }, - post(parent, { id }, ctx, info) { - return ctx.db.query.post({ where: { id } }, info); - }, + // post(parent, { id }, ctx, info) { + // return ctx.db.query.post({ where: { id } }, info); + // }, me(parent, args, ctx, info) { console.l('me!'); -- cgit v1.3