The Guild · JSON Structure

Schema Stitching Config Structure

Document structure for configuring a GraphQL schema stitching gateway.

Type: object Properties: 0
API CompositionAPI GatewayAPI ObservabilityBreaking Change DetectionCI/CDCode GenerationDeveloper ToolsExecutionFederationGitHub ActionsGraphQLJavaScriptMicroservicesMiddlewareMockingOpen-SourcePluginsRESTSDKScalarsSchemaSchema CompositionSchema MergingSchema RegistrySchema StitchingSchema TransformationSchema ValidationServerSubscriptionThe GuildType MergingType SafetyTypeScriptgRPC

Schema Stitching Config Structure is a JSON Structure definition published by The Guild.

Meta-schema:

JSON Structure

Raw ↑
{
  "title": "Schema Stitching Configuration Structure",
  "description": "Document structure for configuring a GraphQL schema stitching gateway.",
  "type": "object",
  "structure": {
    "subschemas": {
      "type": "array",
      "description": "Array of remote or local GraphQL subschemas to stitch together.",
      "items": {
        "schema": "GraphQL schema SDL or executable schema object",
        "url": "Remote service endpoint URL",
        "batch": "Enable DataLoader-style batching",
        "merge": {
          "TypeName": {
            "selectionSet": "Key fields selection set e.g. { id }",
            "fieldName": "Query field to fetch merged type",
            "argsFromKeys": "Map keys to query args function",
            "key": "Extract merge key from object function"
          }
        },
        "transforms": "Array of schema transforms (rename, filter, wrap)"
      }
    },
    "typeDefs": "Additional GraphQL SDL type extensions",
    "resolvers": "Additional resolver implementations",
    "mergeTypes": "Auto-merge same-named types across subschemas"
  },
  "approaches": {
    "schema_extensions": {
      "description": "Traditional delegation method using extend keyword in typeDefs",
      "use_case": "Adding cross-service fields to existing types"
    },
    "programmatic_type_merging": {
      "description": "Code-based configuration of type merging in subschema config",
      "use_case": "Merging distributed entity types by shared key"
    },
    "directive_type_merging": {
      "description": "SDL-based configuration using @key, @merge, @computed directives",
      "use_case": "Self-describing subservices with gateway-reloadable config"
    }
  },
  "key_packages": {
    "@graphql-tools/stitch": "Core schema stitching package",
    "@graphql-tools/schema": "Schema creation utilities",
    "@graphql-tools/utils": "Shared utilities",
    "@graphql-tools/stitching-directives": "Directive-based stitching SDL support",
    "@graphql-tools/wrap": "Schema wrapping and transforms",
    "@graphql-tools/delegate": "Schema delegation helpers",
    "@graphql-tools/batch-execute": "Batched query execution"
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/schema-stitching-config-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.