-
Notifications
You must be signed in to change notification settings - Fork 1.7k
GraphQL: New mutations for managing customers #7673
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just a minor question.
} | ||
) { | ||
customer { | ||
firstname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you leave on purpose all possible customer fields?
I guess yes because it's an example
maybe add a comment in the example # client can add other optional fields in the query
you can add comments wtih # in any graphql query
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're just examples, not meant to show every possibility. Keeping the examples to typical and/or minimal use cases also helps maintain these examples, as I don't have to update the example each time an attribute is added.
Dismissing review because requests aren't currently feasible.
running tests |
Hi @keharper, thank you for your contribution! |
Purpose of this pull request
This pull request (PR) adds documentation for the
createCustomerV2
,updateCustomerV2
, andupdateCustomerPassword
mutations. ThecreateCustomer
andupdateCustomer
mutations have been deprecated.Code PR: magento/magento2#28888
Code issue: magento/magento2#28570
Affected DevDocs pages
Links to Magento source code
whatsnew
We have added the
createCustomerV2
andupdateCustomerV2
mutations to manage customer accounts. These new mutations require different input objects than thecreateCustomer
andupdateCustomer
mutations. To change a customer's email address, use the newupdateCustomerEmail
mutation.