GraphQL: New mutations for managing customers#7673
Conversation
erikmarr
left a comment
There was a problem hiding this comment.
Looks good. Just a minor question.
| } | ||
| ) { | ||
| customer { | ||
| firstname |
There was a problem hiding this comment.
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.
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, andupdateCustomerPasswordmutations. ThecreateCustomerandupdateCustomermutations 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
createCustomerV2andupdateCustomerV2mutations to manage customer accounts. These new mutations require different input objects than thecreateCustomerandupdateCustomermutations. To change a customer's email address, use the newupdateCustomerEmailmutation.