Skip to content

Commit bf48fb8

Browse files
committed
`d
1 parent 6d074a8 commit bf48fb8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/web/docs/src/content/router/configuration/expressions.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ These values allow you to branch logic based on who is calling your API and what
6969
### `.response`
7070

7171
Available only in **response** header rules. It represents the HTTP response from a subgraph call.
72-
You can inspect `.response.status_code` or `.response.headers` and then set or override additional
73-
headers. For example, you could conditionally add a cache header based on the subgraph’s status
74-
code. This variable is not present when computing request headers or dynamic URLs, because the
75-
response does not yet exist.
72+
You can inspect `.response.url` or `.response.headers` and then set or override additional headers.
73+
For example, you could conditionally add a cache header based on the subgraph’s status code. This
74+
variable is not present when computing request headers or dynamic URLs, because the response does
75+
not yet exist.
7676

7777
- `.response.headers` - a case‑insensitive map of response headers.
7878

7979
### `.subgraph`
8080

81-
Available in both **request** and \*_response_& header rules. It provides metadata about the
82-
subgraph handling the current request, including:
81+
Available in both **request** and **response** header rules. It provides metadata about the subgraph
82+
handling the current request, including:
8383

8484
- `.subgraph.name` - the name of the subgraph as defined in your supergraph schema.
8585

packages/web/docs/src/content/router/configuration/override_subgraph_urls.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ When an `object` is provided, it must contain an `expression` that returns a URL
5454
[expression](./expressions) is evaluated for each request, allowing for request-time routing
5555
decisions.
5656

57-
- `expression`: **(string, required)** A [expression](./expressions) that computes the new URL.
57+
- `expression`: **(string, required)** An [expression](./expressions) that computes the new URL.
5858

5959
Within the `expression`, you have access to two key variables:
6060

0 commit comments

Comments
 (0)