Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit f90b7ca

Browse files
committed
changing syntax to new format
1 parent 12871ea commit f90b7ca

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

guides/v2.3/graphql/reference/customer.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Use queries to read server-side data, such as a specific customer's address.
1212

1313
### Syntax
1414

15-
`customer: Customer`
15+
`{customer: {Customer}}`
1616

1717
### Customer attributes {#customerAttributes}
1818
The customer object can contain the following attributes:
@@ -163,7 +163,7 @@ Creates a new customer account.
163163

164164
#### Syntax
165165

166-
`mutation: createCustomer(input: CustomerInput!): CustomerOutput`
166+
`mutation: {createCustomer(input: CustomerInput!) {CustomerOutput}}`
167167

168168
#### Example usage
169169

@@ -216,7 +216,7 @@ Updates the customer's personal information.
216216

217217
#### Syntax
218218

219-
`mutation: updateCustomer(input: CustomerInput!): CustomerOutput`
219+
`mutation: {updateCustomer(input: CustomerInput!) {CustomerOutput}}`
220220

221221
#### Example usage
222222

@@ -297,7 +297,7 @@ Creates the customer's address.
297297

298298
#### Syntax
299299

300-
`mutation: createCustomerAddress(input: CustomerAddressInput!): CustomerAddress`
300+
`mutation: {createCustomerAddress(input: CustomerAddressInput!) {CustomerAddress}}`
301301

302302
#### Example usage
303303

@@ -374,7 +374,7 @@ Updates the customer's address.
374374

375375
#### Syntax
376376

377-
`mutation: updateCustomerAddress(id: Int!input: CustomerAddressInput): CustomerAddress`
377+
`mutation: {updateCustomerAddress(id: Int!input: CustomerAddressInput) {CustomerAddress}}`
378378

379379
#### Example usage
380380

@@ -414,7 +414,7 @@ Deletes the specified customer address.
414414

415415
#### Syntax
416416

417-
`mutation: deleteCustomerAddress(id: Int!): Boolean`
417+
`mutation: {deleteCustomerAddress(id: Int!) {Boolean}}`
418418

419419
#### Example usage
420420

@@ -456,7 +456,7 @@ Creates a new customer token.
456456

457457
#### Syntax
458458

459-
`mutation: generateCustomerToken(email: String!password: String!): CustomerToken`
459+
`mutation: {generateCustomerToken(email: String!password: String!) {CustomerToken}}`
460460

461461
#### Example usage
462462

@@ -493,7 +493,7 @@ Revokes the customer's token.
493493

494494
#### Syntax
495495

496-
`mutation: revokeCustomerToken: RevokeCustomerTokenOutput`
496+
`mutation: {revokeCustomerToken: RevokeCustomerTokenOutput}`
497497

498498
#### Example usage
499499

@@ -534,7 +534,7 @@ Attribute | Data Type | Description
534534

535535
#### Syntax
536536

537-
`mutation: changeCustomerPassword(currentPassword: String!newPassword: String!): Customer`
537+
`mutation: {changeCustomerPassword(currentPassword: String!newPassword: String!) {Customer}}`
538538

539539
#### Example usage
540540

0 commit comments

Comments
 (0)