Skip to content

Commit

Permalink
entering Kevin's edits
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmarr committed Aug 19, 2019
1 parent cdfb180 commit 3a41b99
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 7 deletions.
10 changes: 9 additions & 1 deletion guides/v2.3/graphql/mutations/change-customer-password.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The following call updates the customer's password.
```graphql
mutation {
changeCustomerPassword(
currentPassword: "[email protected]",
currentPassword: "[email protected]"
newPassword: "[email protected]"
) {
id
Expand Down Expand Up @@ -51,6 +51,14 @@ Attribute | Data Type | Description
`currentPassword` | String | The customer's current password
`newPassword` | String | The customer's new password

## Output attributes

The `changeCustomerPassword` object contains the `customer` object.

Attribute | Data Type | Description
--- | --- | ---
`customer` | [customer]({{page.baseurl}}/graphql/queries/customer.html#customerAttributes) | Information about the logged-in customer

## Related topics

* [customer query]({{page.baseurl}}/graphql/queries/customer.html)
Expand Down
6 changes: 6 additions & 0 deletions guides/v2.3/graphql/mutations/create-customer-address.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ Attribute | Data Type | Description
`region` | String | The state or province name
`region_id` | Int | Uniquely identifies the region

## Output attributes

Attribute | Data Type | Description
--- | --- | ---
`CustomerAddress` | [CustomerAddress]({{page.baseurl}}/graphql/queries/customer.html#customerAddress) | Information about the customer’s addresses

## Related topics

* [customer query]({{page.baseurl}}/graphql/queries/customer.html)
Expand Down
8 changes: 8 additions & 0 deletions guides/v2.3/graphql/mutations/create-customer.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ The following table lists the attributes you can use as input for the `createCus

{% include graphql/create-customer.md %}

## Output attributes

The `createCustomer` object contains the `CustomerOutput` object.

Attribute | Data Type | Description
--- | --- | ---
`CustomerOutput` | [customer]({{page.baseurl}}/graphql/queries/customer.html#customerAttributes) | Information about the logged-in customer

## Related topics

* [customer query]({{page.baseurl}}/graphql/queries/customer.html)
Expand Down
12 changes: 10 additions & 2 deletions guides/v2.3/graphql/mutations/update-customer-address.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The following call updates the customer's city and postcode.
mutation {
updateCustomerAddress(id:3, input: {
city: "New City"
postcode: "5555"
postcode: "55555"
}) {
id
city
Expand All @@ -38,7 +38,7 @@ mutation {
"updateCustomerAddress": {
"id": 3,
"city": "New City",
"postcode": 5555
"postcode": 55555
}
}
}
Expand All @@ -53,6 +53,14 @@ Attribute | Data Type | Description
`id` | Int! | The ID assigned to the address object
`CustomerAddressInput` | [CustomerAddress]({{page.baseurl}}/graphql/mutations/create-customer-address.html#customerAddressInput) | An array containing the customer’s shipping and billing addresses

## Output attributes

The `updateCustomerAddress` object contains the `CustomerAddress` object.

Attribute | Data Type | Description
--- | --- | ---
`CustomerAddress` | [CustomerAddress]({{page.baseurl}}/graphql/mutations/create-customer-address.html#customerAddress) | Information about the customer’s addresses

## Related topics

* [customer query]({{page.baseurl}}/graphql/queries/customer.html)
Expand Down
8 changes: 8 additions & 0 deletions guides/v2.3/graphql/mutations/update-customer.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ The following table lists the attributes you can use as input for the `updateCus

{% include graphql/create-customer.md %}

## Output attributes

The `updateCustomer` object contains the `CustomerOutput` object.

Attribute | Data Type | Description
--- | --- | ---
`CustomerOutput` | [customer]({{page.baseurl}}/graphql/queries/customer.html#customerAttributes) | Information about the logged-in customer

## Related topics

* [customer query]({{page.baseurl}}/graphql/queries/customer.html)
Expand Down
4 changes: 2 additions & 2 deletions guides/v2.3/graphql/queries/customer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ redirect_from:
- /guides/v2.3/graphql/reference/customer.html
---

The `customer` query returns information about the logged-in customer.
The `customer` query returns information about the logged-in customer and store credit history.

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).

Expand Down Expand Up @@ -218,7 +218,7 @@ Attribute | Data Type | Description

### Customer address attributes {#customerAddress}

The values assigned to attributes such as `firstname` and `lastname` in this object may be different from those defined in the Customer object.
The values assigned to attributes such as `firstname` and `lastname` in this object may be different from those defined in the `Customer` object.

Attribute | Data Type | Description
--- | --- | ---
Expand Down
2 changes: 0 additions & 2 deletions guides/v2.3/graphql/queries/is-email-available.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ title: isEmailAvailable query

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).

## Syntax

`{isEmailAvailable (email): {IsEmailAvailableOutput}}`
Expand Down

0 comments on commit 3a41b99

Please sign in to comment.