Skip to content

Add guide pages to the doc site - #118

Merged
joadan merged 1 commit into
mainfrom
docs-guides
Oct 16, 2026
Merged

joadan merged 1 commit into
mainfrom
docs-guides

Conversation

@joadan

@joadan joadan commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Adds four guide pages to the documentation site and fixes the README's dependency injection example.

New guides, grouped with Selecting fields under a new Guides menu:

  • Error handling: the four ways a request fails and which exception each raises, exceptions versus ExecuteWithResultAsync, the error code mapping, request failures and timeouts, and queries written as text.
  • Paging: which fields get a pager (top-level connections only), NextPageAsync/PreviousPageAsync, GetAllPagesAsync with maxPages, and the WithResult variants.
  • Subscriptions: setup, subscribing and disposing, the three transports, StartWithErrorsAsync, and the retry, idle-timeout and buffer options from Production-ready subscriptions (SSE + graphql-ws) and a single UTF-8 envelope parser #115.
  • Agent mode (preview): why it exists, setup with --agent, the four tools, the configuration options, what is validated before a query is sent, and the security model.

The home page feature cards and Getting Started now link to them.

The paging and error handling examples were run against the Star Wars API, and the output shown is real. The subscription and agent mode snippets were compiled against the test client, and the agent configuration passes AsAgentTools' setup checks.

README: the dependency injection and request header examples called services.SpaceXClient(...); the generated method is AddSpaceXClient.

Found while writing the subscriptions guide: WebSocket subscriptions don't send ConfigureRequest/WithAccessToken headers (#117). The guide recommends server-sent events when a per-user token is needed.

Add guides for error handling, paging, subscriptions and agent mode,
grouped with selecting fields under a Guides menu and linked from the
home page and getting started. The paging and error handling examples
were run against the Star Wars API; the subscription and agent mode
snippets were compiled against the test client.

The README's dependency injection and request header examples called
services.SpaceXClient(...); the generated method is AddSpaceXClient.
@joadan
joadan merged commit c113549 into main Oct 16, 2026
2 checks passed
@joadan
joadan deleted the docs-guides branch October 16, 2026 13:37
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.

1 participant