Relay v20 treats extend type in server schema as client extensions, causing all mutation fields to have "text": null in generated artifacts. Replace the cat-based schema concatenation with a merge script that collects all extend type Mutation blocks and produces a single type Mutation definition. The split graphql/ files remain the source of truth for gqlgen; the merged schema.graphql is generated for Relay. Signed-off-by: Émile Ré <emile@getprobo.com>
51 lines
1.3 KiB
JSON
51 lines
1.3 KiB
JSON
{
|
|
"root": ".",
|
|
"sources": {
|
|
"apps/console/src/pages/iam": "iam",
|
|
"apps/console/src": "core",
|
|
"apps/trust/src": "trust"
|
|
},
|
|
"projects": {
|
|
"core": {
|
|
"schema": "pkg/server/api/console/v1/schema.graphql",
|
|
"language": "typescript",
|
|
"noFutureProofEnums": true,
|
|
"output": "apps/console/src/__generated__/core",
|
|
"relativizeJsModulePaths": false,
|
|
"customScalarTypes": {
|
|
"Datetime": "string",
|
|
"GID": "string",
|
|
"CursorKey": "string",
|
|
"Duration": "string",
|
|
"BigInt": "number",
|
|
"EmailAddr": "string"
|
|
}
|
|
},
|
|
"iam": {
|
|
"schema": "pkg/server/api/connect/v1/schema.graphql",
|
|
"language": "typescript",
|
|
"noFutureProofEnums": true,
|
|
"output": "apps/console/src/__generated__/iam",
|
|
"relativizeJsModulePaths": false,
|
|
"customScalarTypes": {
|
|
"Datetime": "string",
|
|
"GID": "string",
|
|
"CursorKey": "string",
|
|
"Duration": "string",
|
|
"BigInt": "number",
|
|
"EmailAddr": "string"
|
|
}
|
|
},
|
|
"trust": {
|
|
"schema": "pkg/server/api/trust/v1/schema.graphql",
|
|
"language": "typescript",
|
|
"noFutureProofEnums": true,
|
|
"customScalarTypes": {
|
|
"Datetime": "string",
|
|
"CursorKey": "string",
|
|
"EmailAddr": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|