A fork of graphql-js (the official JavaScript reference implementation for GraphQL) that adds enhancements, notably an option in printSchema to include all fields (including built-in scalars, introspection types, etc.) and exports printFilteredSchema for custom schema printing with user-defined filters. Version 16.7.2 mirrors the upstream graphql-js v16.7.2 but with these improvements. It ships TypeScript types and supports ESM and CJS. Suitable for developers needing finer control over schema introspection output without manual filtering.
npm install better-graphqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a simple GraphQL schema with a single 'hello' field and executes a query against it using the graphql function.
If you rely on printSchema omitting introspection types, explicitly set includeIntrospectionTypes: false in the options.
Monitor the upstream graphql-js repository for critical updates and consider switching back if patching is insufficient.
If you need the official graphql-js API, use 'graphql' instead.
Use 'import { ... } from 'better-graphql''; do not use 'better-graphql/graphql' subpath.Run 'npm install better-graphql' and ensure package name is exactly 'better-graphql'.
Use 'import { printSchema } from 'better-graphql' (named import).Use printSchema(schema, { includeIntrospectionTypes: true }) to include __typename, __schema, etc.No dependency data recorded yet.