Created
July 11, 2017 22:54
-
-
Save auser/91f511103af0497c300bd45e6c951f86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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