I have a session module that authenticates the use...
# orm-help
j
I have a session module that authenticates the user with auth0 where I want to check GraphCool to see if user has been created there with the same auth0UserId and if not execute the createUser mutation. I'm used to doing all of this from within Vue/Apollo with something like:
Copy code
this.$apollo.mutate({
        mutation: CREATE_EXPENSE_MUTATION,
        variables: {
          description: description,
          amount: amount
        },
What's the best way access the API from a vanilla JS file? Am I going about this the right way or should I be doing this check/mutation elsewhere?