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
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,15 @@ type StoreConfig {
6
6
minimum_password_length : String @doc(description: "The minimum number of characters required for a valid password.")
7
7
autocomplete_on_storefront : Boolean @doc(description: "Indicates whether to enable autocomplete on login and forgot password forms.")
8
8
create_account_confirmation: Boolean@doc(description: "Indicates if the new accounts need confirmation.")
9
+
graphql_share_customer_group: Boolean@doc(description: "Configuration data from customer/account_information/graphql_share_customer_group")
9
10
}
10
11
11
12
typeQuery {
12
13
customer: Customer@resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\Customer") @doc(description: "Return detailed information about a customer account.") @cache(cacheable: false)
13
14
isEmailAvailable (
14
15
email: String!@doc(description: "The email address to check.")
15
16
): IsEmailAvailableOutput@resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\IsEmailAvailable") @doc(description: "Check whether the specified email has already been used to create a customer account.")
17
+
customerGroup: CustomerGroupStorefront!@doc(description: "Provides Customer Group assigned to the Customer or Guest.") @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\Visitor")
16
18
}
17
19
18
20
typeMutation {
@@ -153,6 +155,7 @@ type Customer @doc(description: "Defines the customer name, addresses, and other
confirmation_status: ConfirmationStatusEnum!@doc(description: "The customer's confirmation status.") @resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\ConfirmationStatus")
158
+
group: CustomerGroupStorefront@doc(description: "Customer group assigned to the customer") @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\CustomerGroup")
156
159
}
157
160
158
161
typeCustomerAddresses {
@@ -491,3 +494,7 @@ enum ConfirmationStatusEnum @doc(description: "List of account confirmation stat
0 commit comments