Skip to content

Commit

Permalink
ref: add highlight
Browse files Browse the repository at this point in the history
Signed-off-by: Jay <[email protected]>
  • Loading branch information
35C4n0r committed Feb 29, 2024
1 parent 7d61a80 commit 8b78cab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/guides/n+1.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ It's an effective technique to group similar requests into one, greatly reducing
To tap into this feature:
1. Edit the `@upstream` to enable batching:
```graphql showLineNumbers
@upstream(baseURL: "http://jsonplaceholder.typicode.com", batch: {delay: 1}) {
@upstream(
baseURL: "http://jsonplaceholder.typicode.com"
# highlight-start
batch: { delay: 1 }
# highlight-end
) {
query: Query
}
```
Expand Down

0 comments on commit 8b78cab

Please sign in to comment.