# graphql/graphql-relay-js

A library to help construct a graphql-js server supporting react-relay.

Repository: https://github.com/graphql/graphql-relay-js
Canonical: https://ross.abutalabs.com/products/graphql-relay-js
Language: TypeScript
License: MIT
License Family: permissive
Topics: graphql, relay
Last push: 2025-10-02T15:13:55+00:00

## Health v2 (maintenance only)
Score: 43/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 45, release rhythm 8, longevity 100
- inputs: {"age_days": 4047, "days_push": 335, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1541, forks 176 (observed 2026-08-28T04:05:00.624058+00:00)

## What it is
A library of helper functions for building Relay-compliant GraphQL servers using the GraphQL.js reference implementation. It provides utilities for connections, pagination, global object identification, and mutations following the GraphQL Relay specification.

## Use cases
- build a Relay-compliant GraphQL server with graphql-js
- implement cursor-based pagination in a GraphQL API
- create connection types and edge types for paginated lists
- generate global unique IDs for GraphQL objects
- define Relay-style mutation input and payload types
- add forward and backward pagination arguments to GraphQL fields

## When to choose
- you are building a GraphQL server with GraphQL.js that must serve a Relay client
- you need standardized cursor-based pagination (connections) in your GraphQL schema
- you want spec-compliant global object identification and mutations without hand-writing boilerplate

## When to avoid
- your GraphQL server is not built on GraphQL.js (e.g. Apollo Server with its own schema tooling may have alternatives)
- you do not need Relay-specific patterns like connections or global IDs
- you are building a GraphQL client rather than a server

## Facets
- artifact type: library
- maturity: stable
- function: graphql, api-framework, web-framework
- domain: web-development, backend, apis
- platform: -
- tags: relay, graphql-js, pagination, connections, node-definitions, global-ids, schema-helpers, nodejs, javascript, typescript

## Member repositories
- graphql/graphql-relay-js (main) score 43

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:00.624058+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-30T04:30:47.772991+00:00, confidence not recorded.
  - readme: https://github.com/graphql/graphql-relay-js (fetched 2026-08-28T04:05:00.624058+00:00, sha 87c0befd495b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
