Skip to content

Run several queries together in one batch - #126

Merged
magahl merged 1 commit into
mainfrom
add-batch-query
Oct 27, 2026
Merged

magahl merged 1 commit into
mainfrom
add-batch-query

Conversation

@magahl

@magahl magahl commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes #125

Adds CreateBatch().Query(...).OnResult(...).ExecuteAsync(): queries are merged into aliased root fields of one operation, chunked and sent in parallel; mutations keep their order; a request the server rejects is split and resent. Queries themselves are not changed, so they stay reusable.

Existing clients are guarded: dotnet pack (now in CI) validates the public API against 1.0.67-prerelease, and golden snapshots pin the single-query request text. Includes a Batching docs page.

client.CreateBatch().Query(c => ....OnResult(r => ...)).ExecuteAsync() merges
queries into aliased root fields of one operation, chunks large batches and
sends the chunks in parallel. Mutations stay in the order they were added, and
a request the server rejects is split in halves and sent again.

Existing clients are guarded: dotnet pack (now run in CI) validates the public
API against 1.0.67-prerelease, and golden snapshots pin the request text of
single queries.
@magahl magahl self-assigned this Oct 26, 2026
@magahl
magahl merged commit 8db7146 into main Oct 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run several queries together in one batch

1 participant