REA GraphQL Codegen notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

GraphQL Code Generator config (codegen.ts / codegen.yml / .graphqlrc) pins schema→client/server generation identity. In REA 6.7.x, treat selected schema/documents/generates pins as Evidence beside archive/package routes — complementing cousins without inventing APIs.

Mental model

  1. Authorize the GraphQL Codegen tree (+ packaged schema/documents you hold).
  2. Quote selected schema, documents, and generates targets you actually see (never paste API tokens).
  3. Cousins → openapi-generator · smithy-idl · asyncapi-yml · buf-gen.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_graphql_codegen API REA never called.

Minimal path

# authorized codegen.yml|ts (+ schema SDL / documents + artifact you hold)
# quote selected schema / documents / generates pins into case notes
# cousins → peer OpenAPI / Smithy / AsyncAPI / Buf lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_graphql_codegen .

Compare

ArtifactHonest posture
GraphQL Codegen configGeneration identity facts
OpenAPI peerrea-openapi-generator
Buf peerrea-buf-gen
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote schema path(s) or SDL filenames — enough for most Evidence binders.
  • documents globs show which operations feed generation — quote patterns, not full query bodies with secrets.
  • generates targets (TypeScript types, React Apollo hooks, etc.) are identity facts — list plugin names you observed.
  • Remote schema URLs may embed tokens — record host/path labels only; redact credentials.
  • Keep GraphQL Codegen distinct from OpenAPI Generator and Buf generate configs in case notes.
  • Client preset vs legacy plugin lists are still Codegen identity — note the style you saw.

Scope we will not cover

  • No inventing inspect_graphql_codegen / automatic introspection attacks against foreign APIs.
  • No credential theft from schema headers or .env tokens.
  • No pirate redistribution of proprietary GraphQL schemas.
  • No crack framing via Codegen pins.
  • No cookbooks that disable GraphQL auth on foreign deployments.

Honest limits

RepoRead documents config literacy — how authorized GraphQL Codegen trees relate to Evidence — not a full GraphQL course. Prefer upstream Codegen docs for presets, plugins, and watch mode. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-openapi-generator / rea-smithy-idl / rea-buf-gen?

rea-openapi-generator covers OpenAPI Generator; rea-smithy-idl covers Smithy; rea-buf-gen covers Buf/Protobuf. This page zooms on GraphQL Codegen identity — it does not overwrite those pages.

Is there inspect_graphql_codegen in 6.7.0?

Not assumed. Quote schema / documents / generates pins you actually open, then use documented package/archive lanes. Do not invent inspect_graphql_codegen.

Does REA call GraphQL endpoints or steal API tokens?

No. Local trees only. Redact bearer tokens and introspection URLs with secrets; do not treat REA as a GraphQL client. No credential theft.

How should I label Evidence vs other API IDL configs?

Label Evidence by the file present. Keep GraphQL Codegen separate from rea-openapi-generator, rea-asyncapi-yml, and rea-buf-gen.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources