848 votes
0 answers
Shopify Admin API create customer has odd response
Solution:
Query Operation in Shopify GraphQL are type of get request where you can only get the demanded query list.
To edit or update anything on store you need to use Mutation operations (admin api required)
mutation test {
customerCreate(input: {firstName: "", lastName: "", phone: "", email: ""})
}
for more clarity please visit - Shopify GraphQL (https://shopify.dev/graphiql/admin-graphiql)
In the image you can see how to add a mutation operation.
Undefined asked
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.