Restore GraphQL schema merge for Relay query text
relay-compiler requires a single schema file: a directory is rejected and schemaExtensions marks fields as client-only, so it emitted text: null and the console posted query: null, getting a 400 on every operation. Restore the merge step (contrib/merge-graphql-schema.sh, the RELAY_SCHEMAS make rules, and the gitignore entry) and point each relay.config.json project back at the merged schema.graphql. The IDE graphql-config removal and npm-script cleanup are unrelated and stay. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -41,7 +41,7 @@ Individual codegen is driven by `go generate`:
|
||||
- `go generate ./pkg/server/api/mcp/v1` — MCP (mcpgen)
|
||||
- `go generate ./pkg/llm` — LLM model registry from OpenRouter (`make genmodels`)
|
||||
|
||||
`make relay` runs `relay-compiler`, which reads the split `.graphql` schema files directly (via each project's `schema` + `schemaExtensions` in `relay.config.json`) and keeps generated artifacts in sync (stale ones are removed automatically).
|
||||
`make relay` merges each service's split `.graphql` schema files into a single `schema.graphql` (via `contrib/merge-graphql-schema.sh`) and runs `relay-compiler`. The merge is required: relay-compiler's `schema` must be a single file, and `schemaExtensions` would mark the fields as client-only (emitting `text: null`), so the split files cannot be fed to Relay directly.
|
||||
|
||||
## Coverage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user