Permalink
Browse files

Add signup mutation.

  • Loading branch information...
abuiles committed Jun 26, 2018
1 parent 7cc1fe9 commit 5d6e9155d42c8e07c4c08bb627fdb48613d67e53
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/index.ts
@@ -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
)
},
},
}

0 comments on commit 5d6e915

Please sign in to comment.