title: Dynamic GraphQL mutations in React with template literals
body: <p>I am trying to send my Google OAuth response to gql mutation to authenticate the user/log them in. When getting the response from google, I am doing the following:</p>
  <pre><code>const authGQL = (user) =&gt; graphql(gql`
      mutation {
          LoginOrSignup(name: ${user.profileObj.name}, email: ${user.profileObj.email}, googleId: 
          ${user.googleId}, imageUrl: ${user.profileObj.imageUrl}) {
        name
        email
        googleId
        imageUrl
      }
    }
  `);
  </code></pre>
  <p>This is within my mutations file:</p>
  <pre><code>const mutation = new GraphQLObjectType({
      name: 'Mutation',
      fields: {
          LoginOrSignup: {
              type: UserType,
              args: {
                  name: { type: new GraphQLNonNull(GraphQLString) },
                  email: { type: new GraphQLNonNull(GraphQLString) },
                  googleId: { type: new GraphQLNonNull(GraphQLString) },
                  imageUrl: { type: new GraphQLNonNull(GraphQLString) }
              },
              resolve(parentValue, { name, email, googleId, imageUrl}, request) {
                  return AuthService.verifyUser({ name, email, googleId, imageUrl, req: request })
              }
          }
      }
  });
  </code></pre>
  <p>It's not reaching the resolve function and I am not sure why! Thanks in advance.</p>