GraphQL Resolvers is a lightweight functional composition library for GraphQL resolvers (v0.4.2, last released 2019, no active maintenance). It provides utilities like combineResolvers, pipeResolvers, allResolvers, and skipResolvers to combine resolver functions in sequence, supporting access control and reusable middleware patterns. Unlike OOP alternatives like apollo-resolvers, it follows a pure functional paradigm similar to recompose but for GraphQL. The library has minimal dependencies and is designed to work with any GraphQL server. However, it is essentially unmaintained since 2019 and may lack updates for current GraphQL ecosystem changes.
npm install graphql-resolversNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to compose two resolvers using combineResolvers: first checks authentication, then resolves data.
Use named imports like import { combineResolvers } from 'graphql-resolvers';Use pipeResolvers if you need to pass transformed parent values between resolvers.
Consider migrating to graphql-middleware or graphql-resolver-wrapper for long-term support.
Use allResolvers only when you expect all resolvers to pass; otherwise use combineResolvers with error throwing.
Use named import: import { combineResolvers } from 'graphql-resolvers';Use import { combineResolvers } from 'graphql-resolvers'; or require('graphql-resolvers').combineResolvers (CommonJS compatible).Import with correct name: import { skipResolvers } from 'graphql-resolvers';No dependency data recorded yet.