diff --git a/src/guides/v2.4/graphql/queries/store-config.md b/src/guides/v2.4/graphql/queries/store-config.md index 5d0b40092096..102c1d243045 100644 --- a/src/guides/v2.4/graphql/queries/store-config.md +++ b/src/guides/v2.4/graphql/queries/store-config.md @@ -13,7 +13,7 @@ The `storeConfig` query defines information about a store's configuration. You c ### Query a store's configuration -The following call returns all details of a store's configuration. +There are `base` and `extended` store configuration settings which `storeConfig` query may return. The following call returns all `base` details of a store's configuration. **Request:** @@ -36,11 +36,6 @@ The following call returns all details of a store's configuration. secure_base_link_url secure_base_static_url secure_base_media_url - store_name - send_friend { - enabled_for_customers - enabled_for_guests - } } } ``` @@ -66,12 +61,7 @@ The following call returns all details of a store's configuration. "secure_base_url": "http://magento2.vagrant193/", "secure_base_link_url": "http://magento2.vagrant193/", "secure_base_static_url": "http://magento2.vagrant193/pub/static/version1536249714/", - "secure_base_media_url": "http://magento2.vagrant193/pub/media/", - "store_name": "My Store", - "send_friend": { - "enabled_for_customers": true, - "enabled_for_guests": false - } + "secure_base_media_url": "http://magento2.vagrant193/pub/media/" } } } @@ -185,6 +175,36 @@ The following query returns information about the store's catalog configuration. } ``` +### Query a store's Customer configuration + +The following query returns information about the store's customer configuration. + +**Request:** + +```graphql +{ + storeConfig { + autocomplete_on_storefront, + minimum_password_length, + required_character_classes_number, + } +} +``` + +**Response:** + +```json +{ + "data": { + "storeConfig": { + "autocomplete_on_storefront": true, + "minimum_password_length": "6", + "required_character_classes_number": "2" + } + } +} +``` + ### Query a store's fixed product tax configuration The following query returns enumeration values that indicate the store's fixed product tax configuration. @@ -301,6 +321,16 @@ Attribute | Data Type | Description | Example `root_category_id` | Int | The ID of the root category `title_separator` | String | Identifies the character that separates the category name and subcategory in the browser title bar | `-` +### Supported Catalog attributes + +Use the `customer` attributes to retrieve information about the store's customer settings. These attributes are defined in the `CustomerGraphQl` module. + +Attribute | Data Type | Description | Configuration path | Example +--- | --- | --- +`autocomplete_on_storefront` | Boolean | Enable autocomplete on login and forgot password forms. | customer/password/autocomplete_on_storefront | true +`minimum_password_length` | String | The minimum number of characters required for a valid password. | customer/password/minimum_password_length | 6 +`required_character_classes_number` | String | The number of different character classes required in a password (lowercase, uppercase, digits, special characters). | customer/password/required_character_classes_number | 2 + ### Supported WEEE (fixed product tax) attributes The **Stores** > Settings > **Configuration** > **Sales** > **Tax** > **Fixed Product Taxes** panel contains several fields that determine how to display fixed product tax (FPT) values and descriptions. Use the following attributes to determine the values of the **Fixed Product Taxes** fields. These attributes are defined in the `WeeeGraphQl` module.