Apollo Utilities

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

A library of utility functions for working with GraphQL ASTs, used by Apollo Client packages. Current stable version is 1.3.4. Maintenance mode since Apollo Client 3.x internalized these utilities. Key differentiators: provides commonly needed functions like getMainDefinition, getFragmentDefinitions, and createFragmentMap that simplify GraphQL AST manipulation. Primarily used internally by Apollo Client ecosystem.