Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions packages/sdk/openfeature-node-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,15 @@ There are several attributes with special handling within a single or multi-cont

Evaluation results include LaunchDarkly specific information in the OpenFeature flag metadata. A key is only present when it applies to the evaluation.

| Key | Type | Description |
| ------------------- | ------- | ------------------------------------------------------------------------------ |
| `variationIndex` | number | The index of the served variation. Absent when the default value was returned. |
| `inExperiment` | boolean | Present, and `true`, when the evaluation was part of an experiment. |
| `ruleIndex` | number | The index of the matched rule, for a `RULE_MATCH` reason. |
| `ruleId` | string | The identifier of the matched rule, for a `RULE_MATCH` reason. |
| `prerequisiteKey` | string | The key of the failed prerequisite flag, for a `PREREQUISITE_FAILED` reason. |
| `bigSegmentsStatus` | string | The status of the Big Segment query, when the evaluation required one. |
| Key | Type | Description |
| ------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------- |
| `variationIndex` | number | The index of the served variation. Absent when the default value was returned. |
| `inExperiment` | boolean | Present, and `true`, when the evaluation was part of an experiment. |
| `ruleIndex` | number | The index of the matched rule, for a `RULE_MATCH` reason. |
| `ruleId` | string | The identifier of the matched rule, for a `RULE_MATCH` reason. |
| `prerequisiteKey` | string | The key of the failed prerequisite flag, for a `PREREQUISITE_FAILED` reason. |
| `bigSegmentsStatus` | string | The status of the Big Segment query, when the evaluation required one. |
| `overrideAffected` | boolean | Present, and `true`, when the evaluation read a flag or segment definition supplied by an experimental override source. |

```typescript
const details = await client.getBooleanDetails('my-boolean-flag', false);
Expand Down
Loading