You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/code/Magento/CustomerGraphQl/etc/schema.graphqls
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,9 @@ type Query {
18
18
typeMutation {
19
19
generateCustomerToken(email: String!@doc(description: "The customer's email address."), password: String!@doc(description: "The customer's password.")): CustomerToken@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\GenerateCustomerToken") @doc(description:"Generate a token for specified customer.")
20
20
changeCustomerPassword(currentPassword: String!@doc(description: "The customer's original password."), newPassword: String!@doc(description: "The customer's updated password.")): Customer@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\ChangePassword") @doc(description:"Change the password for the logged-in customer.")
21
-
createCustomer (input: CustomerInput!@doc(description: "An input object that defines the customer to be created.")): CustomerOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\CreateCustomer") @doc(description:"Use `createCustomerV2` instead.")
21
+
createCustomer (input: CustomerInput!@doc(description: "An input object that defines the customer to be created.")): CustomerOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\CreateCustomer") @deprecated(reason:"Use `createCustomerV2` instead.")
22
22
createCustomerV2 (input: CustomerCreateInput!@doc(description: "An input object that defines the customer to be created.")): CustomerOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\CreateCustomer") @doc(description:"Create a customer account.")
23
-
updateCustomer (input: CustomerInput!@doc(description: "An input object that defines the customer characteristics to update.")): CustomerOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomer") @doc(description:"Use `updateCustomerV2` instead.")
23
+
updateCustomer (input: CustomerInput!@doc(description: "An input object that defines the customer characteristics to update.")): CustomerOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomer") @deprecated(reason:"Use `updateCustomerV2` instead.")
24
24
updateCustomerV2 (input: CustomerUpdateInput!@doc(description: "An input object that defines the customer characteristics to update.")): CustomerOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomer") @doc(description:"Update the customer's personal information.")
revokeCustomerToken: RevokeCustomerTokenOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\RevokeCustomerToken") @doc(description:"Revoke the customer token.")
@@ -31,6 +31,7 @@ type Mutation {
31
31
resetPassword(email: String!@doc(description: "The customer's email address."), resetPasswordToken: String!@doc(description: "A runtime token generated by the `requestPasswordResetEmail` mutation."), newPassword: String!@doc(description: "The customer's new password.")): Boolean@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\ResetPassword") @doc(description: "Reset a customer's password using the reset password token that the customer received in an email after requesting it using `requestPasswordResetEmail`.")
32
32
updateCustomerEmail(email: String!@doc(description: "The customer's email address."), password: String!@doc(description: "The customer's password.")): CustomerOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomerEmail") @doc(description: "Change the email address for the logged-in customer.")
33
33
confirmEmail(input: ConfirmEmailInput!@doc(description: "An input object to identify the customer to confirm the email.")): CustomerOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\ConfirmEmail") @doc(description: "Confirms the email address for a customer.")
34
+
resendConfirmationEmail(email: String!@doc(description: "The email address to send the confirmation email to.")): Boolean@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\ResendConfirmationEmail") @doc(description: "Resends the confirmation email to a customer.")
34
35
}
35
36
36
37
inputConfirmEmailInput@doc(description: "Contains details about a customer email address to confirm.") {
@@ -47,7 +48,7 @@ input CustomerAddressInput @doc(description: "Contains details about a billing o
47
48
city: String@doc(description: "The customer's city or town.")
48
49
region: CustomerAddressRegionInput@doc(description: "An object containing the region name, region code, and region ID.")
49
50
postcode: String@doc(description: "The customer's ZIP or postal code.")
50
-
country_id: CountryCodeEnum@doc(description: "Deprecated: use `country_code` instead.")
0 commit comments