summaryrefslogtreecommitdiffstats
path: root/backend/src/resolvers/Query.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-02-28 15:28:15 -0500
committerWes Bos <wesbos@gmail.com>2018-02-28 15:28:15 -0500
commitf7bea2d1b7be2b70dceb25c9837f608b538e9cec (patch)
tree3bac7ad6d76fe9eca1d97f92109d709a141bfc00 /backend/src/resolvers/Query.js
parent8f2c595eca30e2d7138c8e8d6685774a8f44e55d (diff)
what
Diffstat (limited to 'backend/src/resolvers/Query.js')
-rw-r--r--backend/src/resolvers/Query.js33
1 files changed, 17 insertions, 16 deletions
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!');