Version 4.3.0 (latest). A utility for breaking down a monolithic GraphQL schema and resolver files into smaller, domain-specific files, then gluing them back together. It supports TypeScript, custom glob patterns, and mixing .graphql files with inline schema strings. Designed for use with Apollo's graphql-tools and graphql-serverless. Release cadence is irregular; maintained by Neap. Key differentiator: opinionated file-based structuring that automatically discovers and combines schema fragments and resolvers.
npm install schemaglueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: scan a folder for GraphQL schema files and resolver modules, glue them together, then build an executable schema with graphql-tools.
Upgrade Node.js to >=12 and ensure graphql-tools is at version 4 or higher.
Replace 'const { glue } = require("schemaglue")' with 'const glue = require("schemaglue")'.Ensure resolver files use default export: module.exports = { Query: { ... } }.Use relative paths from project root for the first argument.
Use 'js' and 'graphql' options to specify file extensions instead of 'extensions'.
Run 'npm install schemaglue --save' and ensure the import path is correct (e.g., 'const glue = require("schemaglue")').Use 'const glue = require("schemaglue")' instead of 'const { glue } = require("schemaglue")'.Verify the root directory exists and contains JS files exporting default resolvers and .graphql files with type definitions.