Skip to content

Instantly share code, notes, and snippets.

@auser
Created July 11, 2017 22:54
Show Gist options
  • Save auser/91f511103af0497c300bd45e6c951f86 to your computer and use it in GitHub Desktop.
Save auser/91f511103af0497c300bd45e6c951f86 to your computer and use it in GitHub Desktop.
mutation createUserAndSubscription(
$email:String,
$token:String!,
$idToken:String!,
$planId:ID!
) {
createUser(
email:$email,
authProvider:{
auth0:{
idToken:$idToken
}
}
) {
id # <~ can I use this response value...
},
createUserSubscription(
token:$token,
planId:$planId,
isPaid:false,
userId:$id # <~ here?
) {
id
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment