this mutation works in graphiql. I'm just trying ...
# prisma-whats-new
t
this mutation works in graphiql. I'm just trying to make a corresponding client side mutation with gql
Copy code
mutation CreateUser {
  createUser(name: "tester2", authProvider: {email: {email: "<mailto:test@test.com|test@test.com>", password: "password"}}) {
    id
    name
  }
}
l
Have you tried something like this?
Copy code
mutation CreateUser($name: String!, $email: AuthProviderSignupData!) {
  createUser(name: $name, authProvider: $authProvider) {
    id
    name
  }
}
variables {
  name: "tester2",
  authProvider: {
    email: {
      email: "<mailto:test@test.com|test@test.com>",
      password: "password"
    }
  }
}