Skip to content

Commit

Permalink
Add signup mutation.
Browse files Browse the repository at this point in the history
  • Loading branch information
abuiles committed Jun 26, 2018
1 parent 7cc1fe9 commit 5d6e915
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/index.ts
Expand Up @@ -7,6 +7,18 @@ const resolvers = {
Query: {
},
Mutation: {
signup(_, { username }, context: Context, info) {
const data = {
username,
stellarAccount: '1234',
stellarSeed: '1234'
}

return context.db.mutation.createUser(
{ data },
info
)
},
},
}

Expand Down

0 comments on commit 5d6e915

Please sign in to comment.