# graphql-compose/graphql-compose

Toolkit for generating complex GraphQL Schemas on Node.js

Repository: https://github.com/graphql-compose/graphql-compose
Canonical: https://ross.abutalabs.com/products/graphql-compose
Homepage: https://graphql-compose.github.io/
Language: TypeScript
License: MIT
License Family: permissive
Topics: graphql, schema, toolkit, schema-builder, graphql-compose, hacktoberfest
Last push: 2025-01-11T15:31:11+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 1, release rhythm 8, longevity 100
- inputs: {"age_days": 3739, "days_push": 599, "days_rel": 599, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1210, forks 73 (observed 2026-08-28T04:04:00.007887+00:00)

## What it is
graphql-compose is a TypeScript toolkit for programmatically building and modifying complex GraphQL schemas on Node.js. It provides a type registry, resolvers, type editing (add/remove fields, args, interfaces), and plugins that generate GraphQL types from ORMs and other data sources.

## Use cases
- build a graphql schema programmatically in node.js
- generate graphql types from mongoose models
- modify existing graphql types by adding or removing fields
- wrap rest apis with graphql types
- write a custom graphql schema generator
- create relations between graphql types via resolvers
- convert graphql output types to input types

## When to choose
- you need fine-grained programmatic control over graphql schema construction
- you are building a schema generator or plugin on top of graphql
- you want to generate graphql types from ORMs like mongoose or elasticsearch mappings
- you need to dynamically edit types, fields, args, or interfaces at runtime

## When to avoid
- you just need a simple schema from SDL strings - graphql-tools may suffice
- you are not using node.js or a javascript runtime
- you want a fully declarative schema-first workflow without programmatic type manipulation

## Facets
- artifact type: library
- maturity: stable
- function: graphql, api-framework, developer-tools
- domain: web-development, apis, backend, developer-tools
- platform: -
- tags: schema-builder, type-registry, schema-generation, resolvers, graphql-schema, nodejs, typescript

## Member repositories
- graphql-compose/graphql-compose (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:00.007887+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:18:11.681517+00:00, confidence not recorded.
  - readme: https://github.com/graphql-compose/graphql-compose (fetched 2026-08-28T04:04:00.007887+00:00, sha 026d22528518)
  - homepage: https://graphql-compose.github.io/ (fetched 2026-08-29T12:26:18.399870+00:00, sha a32d8ea7e4e7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
