rest - Shopify GraphQL customerCreate mutation requires password?
Solution:
The backend Admin API mutation has no such restriction. You are speaking specifically of the Storefront API mutation then, which means when you are creating customers, you're doing it while they are present in the store itself. Since they are present in the store itself, why don't you collect their desired password, and send that along to the mutation? You can surely present a form with a text field. That way, you satisfy the mutation.
Straight from the docs here... you are on the front-end of a website, so you have no choice but to use Storefront API: https://shopify.dev/api/storefront/2022-10/mutations/customerCreate (https://shopify.dev/api/storefront/2022-10/mutations/customerCreate)
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.