Skip to content

Commit 0359ae5

Browse files
update
1 parent 500d6ba commit 0359ae5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/azure-app-configuration/reference-javascript-provider.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const endpoint = process.env.AZURE_APPCONFIG_ENDPOINT;
3434
const credential = new DefaultAzureCredential(); // For more information, see https://learn.microsoft.com/azure/developer/javascript/sdk/credential-chains#use-defaultazurecredential-for-flexibility
3535

3636
async function run() {
37-
// Connect to Azure App Configuration using a token credential and load all key-values with null label.
37+
// Connect to Azure App Configuration using a token credential and load all key-values with no label.
3838
const settings = await load(endpoint, credential);
3939
console.log('settings.get("message"):', settings.get("message"));
4040
}
@@ -49,7 +49,7 @@ const { load } = require("@azure/app-configuration-provider");
4949
const connectionString = process.env.AZURE_APPCONFIG_CONNECTION_STRING;
5050

5151
async function run() {
52-
// Connect to Azure App Configuration using a connection string and load all key-values with null label.
52+
// Connect to Azure App Configuration using a connection string and load all key-values with no label.
5353
const settings = await load(connectionString);
5454
console.log('settings.get("message"):', settings.get("message"));
5555
}
@@ -120,7 +120,7 @@ The `AzureAppConfiguration` type extends the following interfaces:
120120

121121
### Load specific key-values using selectors
122122

123-
By default, the `load` method will load all configurations with null label from the configuration store. You can configure the behavior of the `load` method through the optional parameter of [`AzureAppConfigurationOptions`](https://github.com/Azure/AppConfiguration-JavaScriptProvider/blob/main/src/AzureAppConfigurationOptions.ts) type.
123+
By default, the `load` method will load all configurations with no label from the configuration store. You can configure the behavior of the `load` method through the optional parameter of [`AzureAppConfigurationOptions`](https://github.com/Azure/AppConfiguration-JavaScriptProvider/blob/main/src/AzureAppConfigurationOptions.ts) type.
124124

125125
To refine or expand the configurations loaded from the App Configuration store, you can specify the key or label selectors under the `AzureAppConfigurationOptions.selectors` property.
126126

@@ -239,7 +239,7 @@ You can [create feature flags](./manage-feature-flags.md#create-a-feature-flag)
239239
const settings = await load(endpoint, credential, {
240240
featureFlagOptions: {
241241
enabled: true,
242-
selectors: [ { keyFilter: "*" } ],
242+
selectors: [ { keyFilter: "*", labelFilter: "Prod" } ],
243243
refresh: {
244244
enabled: true,
245245
refreshIntervalInMs: 10_000
@@ -249,7 +249,7 @@ const settings = await load(endpoint, credential, {
249249
```
250250

251251
> [!NOTE]
252-
> Selectors for feature flags must be explicitly provided. Otherwise, an exception will be thrown.
252+
> If `featureFlagOptions` is enabled and no selector is specified, the configuration provider will load all feature flags with no label from the App Configuration store.
253253

254254
### Feature management
255255

0 commit comments

Comments
 (0)