Split GraphQL schemas into per-entity files

Split each API's monolithic schema.graphql into per-coredata-model
files under graphql/ subdirectories. gqlgen's follow-schema layout
with {name}.resolvers.go template generates one resolver file per
schema file. Relay uses schema + schemaExtensions to load the split
files.

Connect API: 8 files (base, session, organization, profile,
personal_api_key, saml, scim, audit_log)

Trust API: 5 files (base, trust_center, auth, nda, mailing_list)

Console API: 25 files covering all domain entities

Types extended across files (Organization, Mutation, Viewer,
TrustCenter, Identity) are defined in base.graphql as required by
Relay's schemaExtensions.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-14 17:34:46 +04:00
parent 808fdffc9b
commit 31cca05ca4
87 changed files with 25638 additions and 24800 deletions

View File

@@ -1,4 +1,5 @@
schema: ["schema.graphql"]
schema:
- "graphql/*.graphql"
exec:
filename: "schema/schema.go"
@@ -12,7 +13,7 @@ resolver:
layout: "follow-schema"
dir: "."
package: "console_v1"
filename_template: "v1_resolver.go"
filename_template: "{name}.resolvers.go"
autobind: []
call_argument_directives_with_null: true