Version 0.8.3. A library for merging a remote GraphQL endpoint (e.g., GitHub's v4 API) into your local GraphQL schema. Wraps external queries under a field that resolves contextually, allowing per-user authenticated requests. Includes a pre-built helper for GitHub's API. Requires graphql ^16. Release cadence is low, with infrequent updates. Differentiator: nested GraphQL schema stitching without complex federation, designed for server-side use with Node v15+ (native AbortController).
npm install nest-graphql-endpointNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Merges a remote GraphQL endpoint into a parent schema under a new field with per-user auth context.
Use import nestGitHubEndpoint from 'nest-graphql-endpoint/lib/nestGitHubEndpoint'
Use import syntax or dynamic import in an ESM context.
Ensure Node version is 15.0.0 or higher, or use a polyfill.
Always fetch the latest schema IDL from the remote endpoint (e.g., via introspection) and ensure consistency.
Switch to ESM by adding 'type": "module"' to package.json or use dynamic import.
Use import nestGitHubEndpoint from 'nest-graphql-endpoint/lib/nestGitHubEndpoint'
Add a batchKey (e.g., 'accessToken') to the options object.