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

Commit 5f9667a

Browse files
authored
Updating customer output object in resolvers example (#6797)
1 parent 47b7a37 commit 5f9667a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/guides/v2.3/graphql/develop/resolvers.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,9 @@ type Customer @doc(description: "Customer defines the customer name and address
341341
default_shipping: String @doc(description: "The ID assigned to the shipping address")
342342
date_of_birth: String @doc(description: "The customer's date of birth")
343343
taxvat: String @doc(description: "The customer's Tax/VAT number (for corporate customers)")
344-
id: Int @doc(description: "The ID assigned to the customer")
345344
is_subscribed: Boolean @doc(description: "Indicates whether the customer is subscribed to the company's newsletter") @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\IsSubscribed")
346345
addresses: [CustomerAddress] @doc(description: "An array containing the customer's shipping and billing addresses")
346+
gender: Int @doc(description: "The customer's gender (Male - 1, Female - 2)")
347347
}
348348
```
349349

@@ -361,7 +361,6 @@ mutation {
361361
}
362362
) {
363363
customer {
364-
id
365364
firstname
366365
lastname
367366
email
@@ -378,7 +377,6 @@ A sample response:
378377
"data": {
379378
"createCustomer": {
380379
"customer": {
381-
"id": 5,
382380
"firstname": "John",
383381
"lastname": "Doe",
384382
"email": "j.doe@example.com",

0 commit comments

Comments
 (0)