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

Updating customer output object in resolvers example #6797

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/guides/v2.3/graphql/develop/resolvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ type Customer @doc(description: "Customer defines the customer name and address
default_shipping: String @doc(description: "The ID assigned to the shipping address")
date_of_birth: String @doc(description: "The customer's date of birth")
taxvat: String @doc(description: "The customer's Tax/VAT number (for corporate customers)")
id: Int @doc(description: "The ID assigned to the customer")
is_subscribed: Boolean @doc(description: "Indicates whether the customer is subscribed to the company's newsletter") @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\IsSubscribed")
addresses: [CustomerAddress] @doc(description: "An array containing the customer's shipping and billing addresses")
gender: Int @doc(description: "The customer's gender (Male - 1, Female - 2)")
}
```

Expand All @@ -361,7 +361,6 @@ mutation {
}
) {
customer {
id
firstname
lastname
email
Expand All @@ -378,7 +377,6 @@ A sample response:
"data": {
"createCustomer": {
"customer": {
"id": 5,
"firstname": "John",
"lastname": "Doe",
"email": "j.doe@example.com",
Expand Down