REA GraphQL Codegen notes (unofficial)
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
- Authorize the GraphQL Codegen tree (+ packaged schema/documents you hold).
- Quote selected
schema,documents, andgeneratestargets you actually see (never paste API tokens). - Cousins → openapi-generator · smithy-idl · asyncapi-yml · buf-gen.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_graphql_codegenAPI 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
| Artifact | Honest posture |
|---|---|
| GraphQL Codegen config | Generation identity facts |
| OpenAPI peer | rea-openapi-generator |
| Buf peer | rea-buf-gen |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote
schemapath(s) or SDL filenames — enough for most Evidence binders. documentsglobs show which operations feed generation — quote patterns, not full query bodies with secrets.generatestargets (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
.envtokens. - 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).