Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add user query.
  • Loading branch information
abuiles committed Jun 26, 2018
1 parent 5d6e915 commit 3d3ffff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit 3d3ffff

Please sign in to comment.