Auto-generated helper functions for building GraphQL AST nodes, mirroring the babel-types API. Version 1.0.2 is the latest stable release. It provides factory functions, type checkers (is*), and assertion methods (assert*) for all GraphQL AST node kinds defined by the graphql package. The library is useful for programmatic construction of GraphQL documents without manual object creation. It requires graphql@^0.11.7 as a peer dependency. Its key differentiator is auto-generation from the official GraphQL AST flow descriptions, ensuring correctness and completeness. Development appears inactive since 2018.
npm install graphql-ast-typesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates constructing a simple GraphQL query using factory functions and printing it.
Check that all required node kinds exist; manually extend if necessary.
Use graphql@0.11.x or consider alternatives like graphql-tag or manual AST creation.
Use the corresponding is* functions to validate before constructing.
Ensure all required children are provided as arrays or valid AST nodes.
Use the corresponding is* function to verify before using.
Run 'npm install graphql@^0.11.7' to install the correct peer dependency.