755 votes
1 answers
javascript - Shopify - Facing issue when creating customer using shopify api
Solution:
Use the following query. its worked for me
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
}
}
}
Undefined asked
117
votes
Answer
Solution:
The error is telling you there's a parse* error on line 16 column 20. Parse errors usually point to typos, and my best guess is the:
you have aftervariables
on line 16 - is that symbol supposed to be there?
Undefined answered
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.