A plugin for GraphQL Config that patches endpoints into a GraphQL Config instance based on an OpenAPI/Swagger definition. Version 1.0.7 is the latest stable. It enables GraphQL CLI tools to retrieve schemas from OpenAPI endpoints by injecting the necessary URL and headers into the config. This extension is primarily used with graphql-config and graphql-cli. It supports ESM imports and ships TypeScript definitions. Compared to alternatives, it integrates directly with the GraphQL Config ecosystem.
npm install tmp-graphql-config-extension-openapiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to patch endpoints into a GraphQL config using an OpenAPI definition.
Use import syntax or dynamic import.
Use named import { patchEndpointsToConfig }.Ensure graphql-config is compatible (e.g., version 3.x).
Switch to import syntax or use dynamic import: import('graphql-config-extension-openapi')Use named import: import { patchEndpointsToConfig } from 'graphql-config-extension-openapi'Install graphql-config: npm install graphql-config
No dependency data recorded yet.