Skip to content

docs: add v3 GraphQL API reference - #171

Open
PJ Tatlow (pjtatlow) wants to merge 2 commits into
release/2.2from
docs/v3-graphql-api-reference
Open

docs: add v3 GraphQL API reference#171
PJ Tatlow (pjtatlow) wants to merge 2 commits into
release/2.2from
docs/v3-graphql-api-reference

Conversation

@pjtatlow

Copy link
Copy Markdown
Contributor

Summary

Adds the v3 GraphQL API to the Mintlify docs site alongside the existing v2 REST API. The API Reference tab now has a version picker — v2 (REST) (default) and v3 (GraphQL) with a Beta tag.

The entire reference is generated from a vendored doc model (redo/api-schema-v3/v3.docs.json) that the v3 server emits from its Pothos schema walk (bazel run //redo/public/v3/server:emit_docs in the main repo). To regenerate here: re-vendor the JSON and run bazel run graphql_gen.

What's included

  • Generator (tools/graphql/, bazel run graphql_gen): renders the doc model to MDX — one page per query / mutation / type, grouped by category, with:
    • a Stripe/Shopify-style expandable field explorer (ResponseField + nested Expandable), linked types, per-field Requires: scopes, and cycle-guarded nesting (MAX_DEPTH)
    • connections collapsed to their node type + a pagination link
    • auto-patching of the v3 nav in docs.json (preserving the hand-authored Getting Started group + the Beta tag)
    • referential-integrity validation (//tools/graphql:validate_test); empty/forward-declared categories are skipped and logged
  • Getting Started (hand-authored): introduction, authentication, queries & mutations, pagination, rate limiting (query-cost model, per-account bucket, throttleStatus, 429/THROTTLED), errors.
  • 135 generated reference pages across Catalog, Inventory, Procurement, Orders, Returns, Customers, Webhooks, Common, plus an Access scopes page.

Validation

  • bazel test tools/lint:lint_test — passes
  • bazel test //tools/graphql:validate_test — passes
  • mintlify broken-links — no broken links

Notes

  • CI (build.yml) does not deploy the Mintlify site — that's handled by the Mintlify GitHub app. This PR only affects the Mintlify docs (redo/docs, docs.json), not the Stoplight publish_docs job.
  • The matching v3.docs.json regeneration in the main repo (redoapp/redo) should be merged too, so the source of truth matches what these docs were built from.

🤖 Generated with Claude Code

Add the v3 GraphQL API to the Mintlify docs site alongside the v2 REST
API, using a version picker (v2 (REST) default, v3 (GraphQL) tagged Beta).

The reference is generated from a vendored doc model
(redo/api-schema-v3/v3.docs.json) emitted by the v3 server's Pothos
schema walk:

- tools/graphql generator (`bazel run graphql_gen`): renders the model to
  MDX — one page per query/mutation/type, grouped by category, with a
  Stripe/Shopify-style expandable field explorer (linked types, per-field
  scopes, cycle-guarded nesting). It also patches the v3 nav in docs.json
  and validates the model's referential integrity
  (//tools/graphql:validate_test). Empty categories are skipped until they
  have content.
- Hand-authored Getting Started pages: introduction, authentication,
  queries & mutations, pagination, rate limiting, errors.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
redo-44af351d 🟢 Ready View Preview Jul 4, 2026, 4:33 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sort categories A-Z by label (instead of the model's order field), and
sort queries, mutations, and objects alphabetically within each category
in the nav and overview pages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant