Skip to content

Commit

Permalink
Update spec/Appendix B -- Variable Batching.md
Browse files Browse the repository at this point in the history
Co-authored-by: Benjie <[email protected]>
  • Loading branch information
michaelstaib and benjie authored Jan 9, 2025
1 parent f159e73 commit 6c995bd
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions spec/Appendix B -- Variable Batching.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ query($ids: [ID!]!) {
However, this approach doesn’t work when variables are used within nested selections.

```graphql
query($ids: [ID!]! $first: Int!) {
productsByIds(ids: $ids) {
id
name
reviews(first: $first) {
id
body
}
query ($vendorId: ID!, $productId: ID!) {
vendor(id: $vendorId) {
id
name
stock(productId: $productId) {
count
nextDeliveryDue
product { id name }
}
}
}
```

Expand Down

0 comments on commit 6c995bd

Please sign in to comment.