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/CompareListGraphQl/etc/schema.graphqls
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -29,15 +29,15 @@ type Customer {
29
29
}
30
30
31
31
typeQuery {
32
-
compareList(uid: ID!): CompareList@resolver(class: "\\Magento\\CompareListGraphQl\\Model\\Resolver\\CompareList") @doc(description: "Return products that have been added to the specified compare list.")
32
+
compareList(uid: ID!@doc(description: "The unique ID of the compare list to be queried.")): CompareList@resolver(class: "\\Magento\\CompareListGraphQl\\Model\\Resolver\\CompareList") @doc(description: "Return products that have been added to the specified compare list.")
33
33
}
34
34
35
35
typeMutation {
36
36
createCompareList(input: CreateCompareListInput): CompareList@resolver(class: "\\Magento\\CompareListGraphQl\\Model\\Resolver\\CreateCompareList") @doc(description: "Create a new compare list. The compare list is saved for logged in customers.")
37
-
addProductsToCompareList(input: AddProductsToCompareListInput): CompareList@resolver(class: "\\Magento\\CompareListGraphQl\\Model\\Resolver\\AddProductsToCompareList") @doc(description: "Add products to the specified compare list.")
38
-
removeProductsFromCompareList(input: RemoveProductsFromCompareListInput): CompareList@resolver(class: "\\Magento\\CompareListGraphQl\\Model\\Resolver\\RemoveProductsFromCompareList") @doc(description: "Remove products from the specified compare list.")
39
-
assignCompareListToCustomer(uid: ID!): AssignCompareListToCustomerOutput@resolver(class: "\\Magento\\CompareListGraphQl\\Model\\Resolver\\AssignCompareListToCustomer") @doc(description: "Assign the specified compare list to the logged in customer.")
40
-
deleteCompareList(uid: ID!): DeleteCompareListOutput@resolver(class: "\\Magento\\CompareListGraphQl\\Model\\Resolver\\DeleteCompareList") @doc(description: "Delete the specified compare list.")
37
+
addProductsToCompareList(input: AddProductsToCompareListInput@doc(description: "An input object that defines which products to add to an existing compare list.")): CompareList@resolver(class: "\\Magento\\CompareListGraphQl\\Model\\Resolver\\AddProductsToCompareList") @doc(description: "Add products to the specified compare list.")
38
+
removeProductsFromCompareList(input: RemoveProductsFromCompareListInput@doc(description: "An input object that defines which products to remove from a compare list.")): CompareList@resolver(class: "\\Magento\\CompareListGraphQl\\Model\\Resolver\\RemoveProductsFromCompareList") @doc(description: "Remove products from the specified compare list.")
39
+
assignCompareListToCustomer(uid: ID!@doc(description: "The unique ID of the compare list to be assigned.")): AssignCompareListToCustomerOutput@resolver(class: "\\Magento\\CompareListGraphQl\\Model\\Resolver\\AssignCompareListToCustomer") @doc(description: "Assign the specified compare list to the logged in customer.")
40
+
deleteCompareList(uid: ID!@doc(description: "The unique ID of the compare list to be deleted.")): DeleteCompareListOutput@resolver(class: "\\Magento\\CompareListGraphQl\\Model\\Resolver\\DeleteCompareList") @doc(description: "Delete the specified compare list.")
41
41
}
42
42
43
43
inputCreateCompareListInput@doc(description: "Contains an array of product IDs to use for creating a compare list.") {
Copy file name to clipboardExpand all lines: app/code/Magento/CustomerGraphQl/etc/schema.graphqls
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -15,19 +15,19 @@ type Query {
15
15
}
16
16
17
17
typeMutation {
18
-
generateCustomerToken(email: String!, password: String!): CustomerToken@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\GenerateCustomerToken") @doc(description:"Generate a token for specified customer.")
19
-
changeCustomerPassword(currentPassword: String!, newPassword: String!): Customer@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\ChangePassword") @doc(description:"Change the password for the logged-in customer.")
updateCustomerV2 (input: CustomerUpdateInput!): CustomerOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomer") @doc(description:"Update the customer's personal information.")
18
+
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.")
19
+
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.")
20
+
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
+
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.")
22
+
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
+
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.")
24
24
revokeCustomerToken: RevokeCustomerTokenOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\RevokeCustomerToken") @doc(description:"Revoke the customer token.")
25
25
createCustomerAddress(input: CustomerAddressInput!): CustomerAddress@resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\CreateCustomerAddress") @doc(description: "Create a billing or shipping address for a customer or guest.")
26
-
updateCustomerAddress(id: Int!, input: CustomerAddressInput): CustomerAddress@resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomerAddress") @doc(description: "Update the billing or shipping address of a customer or guest.")
27
-
deleteCustomerAddress(id: Int!): Boolean@resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\DeleteCustomerAddress") @doc(description: "Delete the billing or shipping address of a customer.")
28
-
requestPasswordResetEmail(email: String!): Boolean@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\RequestPasswordResetEmail") @doc(description: "Request an email with a reset password token for the registered customer identified by the specified email.")
29
-
resetPassword(email: String!, resetPasswordToken: String!, newPassword: String!): 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`.")
30
-
updateCustomerEmail(email: String!, password: String!): CustomerOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomerEmail") @doc(description: "Change the email address for the logged-in customer.")
26
+
updateCustomerAddress(id: Int!@doc(description: "The ID assigned to the customer address."), input: CustomerAddressInput@doc(description: "An input object that contains changes to the customer address.")): CustomerAddress@resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomerAddress") @doc(description: "Update the billing or shipping address of a customer or guest.")
27
+
deleteCustomerAddress(id: Int!@doc(description: "The ID of the customer address to be deleted.")): Boolean@resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\DeleteCustomerAddress") @doc(description: "Delete the billing or shipping address of a customer.")
28
+
requestPasswordResetEmail(email: String!@doc(description: "The customer's email address.")): Boolean@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\RequestPasswordResetEmail") @doc(description: "Request an email with a reset password token for the registered customer identified by the specified email.")
29
+
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`.")
30
+
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.")
31
31
}
32
32
33
33
inputCustomerAddressInput@doc(description: "Contains details about a billing or shipping address."){
0 commit comments