diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-04-13 10:15:00 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-04-13 10:15:00 -0400 |
| commit | 1711cef0c3e32082d30e5fe1189597ad5761e82b (patch) | |
| tree | e28bcf386168953e51090aa70e28d5a2687bade8 /backend/src | |
| parent | cabc86b83951b9fefb7e864fba82f1d93715c805 (diff) | |
remove auth payload
Diffstat (limited to 'backend/src')
| -rw-r--r-- | backend/src/createServer.js | 2 | ||||
| -rw-r--r-- | backend/src/resolvers/AuthPayload.js | 7 |
2 files changed, 0 insertions, 9 deletions
diff --git a/backend/src/createServer.js b/backend/src/createServer.js index df016a7..a98a25f 100644 --- a/backend/src/createServer.js +++ b/backend/src/createServer.js @@ -6,7 +6,6 @@ console.log(process.env.PRISMA_STAGE); const Mutation = require('./resolvers/Mutation'); const Query = require('./resolvers/Query'); -const AuthPayload = require('./resolvers/AuthPayload'); function createServer() { return new GraphQLServer({ @@ -15,7 +14,6 @@ function createServer() { // detail resolvers Mutation, Query, - AuthPayload, }, context: req => ({ ...req, diff --git a/backend/src/resolvers/AuthPayload.js b/backend/src/resolvers/AuthPayload.js deleted file mode 100644 index f5945b7..0000000 --- a/backend/src/resolvers/AuthPayload.js +++ /dev/null @@ -1,7 +0,0 @@ -const { Context } = require('../utils'); - -const AuthPayload = { - user: async ({ user: { id } }, args, ctx, info) => ctx.db.query.user({ where: { id } }, info), -}; - -module.exports = AuthPayload; |
