Skip to content

Commit

Permalink
Update selectors doc with response mapping problem selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
pubmodmatt committed Feb 10, 2025
1 parent 27f07ff commit d07f44a
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,19 @@ The subgraph service executes multiple times during query execution, with each e

Apollo Connectors for REST APIs make HTTP calls to the upstream HTTP API. These selectors let you extract metrics from these HTTP requests and responses.

| Selector | Defaultable | Values | Description |
|----------------------------------|-------------|------------------|-------------------------------------------------------------------|
| `subgraph_name` | No | `true`\|`false` | The name of the subgraph containing the connector |
| `connector_source ` | No | `name` | The name of the `@source` associated with this connector, if any |
| `connector_http_request_header` | Yes | | The name of a connector request header |
| `connector_http_response_header` | Yes | | The name of a connector response header |
| `connector_http_response_status` | No | `code`\|`reason` | The status of a connector response |
| `connector_http_method` | No | `true`\|`false` | The HTTP method of a connector request |
| `connector_url_template ` | No | `true`\|`false` | The URL template of a connector request |
| `static` | No | | A static string value |
| `error` | No | `reason` | A string value containing error reason when it's a critical error |
| Selector | Defaultable | Values | Description |
|---------------------------------------|-------------|---------------------|-------------------------------------------------------------------|
| `subgraph_name` | No | `true`\|`false` | The name of the subgraph containing the connector |
| `connector_source ` | No | `name` | The name of the `@source` associated with this connector, if any |
| `connector_http_request_header` | Yes | | The name of a connector request header |
| `connector_http_response_header` | Yes | | The name of a connector response header |
| `connector_http_response_status` | No | `code`\|`reason` | The status of a connector response |
| `connector_http_method` | No | `true`\|`false` | The HTTP method of a connector request |
| `connector_url_template ` | No | `true`\|`false` | The URL template of a connector request |
| `connector_request_mapping_problems` | No | `problems`\|`count` | Any mapping problems with the connector request |
| `connector_response_mapping_problems` | No | `problems`\|`count` | Any mapping problems with the connector response |
| `static` | No | | A static string value |
| `error` | No | `reason` | A string value containing error reason when it's a critical error |


### GraphQL
Expand Down

0 comments on commit d07f44a

Please sign in to comment.