I am looking for a solution how we can create customer with customer group Id,
I am using the createCustomer mutation.
mutation {
createCustomer(
input: {
firstname: "ko2"
lastname: "89ko2"
email: "[email protected]"
is_subscribed: true
customerGroupId: 1
}
) {
customer {
id
firstname
lastname
email
}
}
}
I am getting below error
“errors”: [
{
“message”: “Field “customerGroupId” is not defined by type CustomerInput.”,
Can anyone help me with this how I can create customer along with the group. Thanks in Advance!