graphql-ast-types

JSON →
library 1.0.2 ·javascript maintenance
verified Jun 7, 2026

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.