-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Migrating Customer endpoint to new directories as per Magedoc3973 #5124
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.
My first pass-through without looking at a build. I'll look at the PR holistically next time.
```graphql | ||
mutation { | ||
changeCustomerPassword( | ||
currentPassword: "[email protected]", |
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.
currentPassword: "[email protected]", | |
currentPassword: "[email protected]" |
mutation { | ||
updateCustomerAddress(id:3, input: { | ||
city: "New City" | ||
postcode: "5555" |
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.
postcode: "5555" | |
postcode: "55555" |
"updateCustomerAddress": { | ||
"id": 3, | ||
"city": "New City", | ||
"postcode": 5555 |
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.
"postcode": 5555 | |
"postcode": 55555 |
|
||
The `isEmailAvailable` query checks whether the specified email has already been used to create a customer account. A value of `true` indicates the email address is available, and the customer can use the email address to create an account. | ||
|
||
To return or modify information about a customer, Magento recommends you use customer tokens in the header of your GraphQL calls. However, you also can use [session authentication]({{ page.baseurl }}/get-started/authentication/gs-authentication-session.html). |
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.
I think it's safe to not include this paragraph, because the query is checking whether a specific emall address has been used before.
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.
You're missing the Output attributes section for almost all of the mutations. I stopped making individual comments when I noticed that.
running tests |
1 similar comment
running tests |
running tests |
Hi @erikmarr, thank you for your contribution! |
Purpose of this pull request
This pull request (PR) moves the customer endpoint to the new queries/mutations subdirs.
Affected DevDocs pages