Hey, I want to create a customer with password using the graphql api. I followed the documentation to create a customer with password to avoid the activation process by email, this is the query I’m sending:
mutation {
customerCreate(
input: {
firstName: "dave",
lastName: "smith",
email: "someone@gmail.com",
password: "12345"
acceptsMarketing: true,
}
) {
customer {
id
firstName
lastName
email
}
userErrors {
field
message
}
customer {
id
}
}
}
But I’m getting this error as if the specification changed:
{
"errors": [
{
"message": "InputObject 'CustomerInput' doesn't accept argument 'password'",
"locations": [
{
"line": 7,
"column": 11
}
],
"path": [
"mutation",
"customerCreate",
"input",
"password"
],
"extensions": {
"code": "argumentNotAccepted",
"name": "CustomerInput",
"typeName": "InputObject",
"argumentName": "password"
}
}
]
}
How do I do to achieve this? Thanks!