Permalink
Browse files

Add user query.

  • Loading branch information...
abuiles committed Jun 26, 2018
1 parent 5d6e915 commit 3d3ffffeec77f1e69965d014989379f733b1d65b
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/index.ts
@@ -5,6 +5,16 @@ import { Context } from './utils'

const resolvers = {
Query: {
user(_, { username }, context: Context, info) {
return context.db.query.user(
{
where: {
username
}
},
info
)
}
},
Mutation: {
signup(_, { username }, context: Context, info) {

0 comments on commit 3d3ffff

Please sign in to comment.