Graphile Build PostgreSQL Plugins
JSON →`graphile-build-pg` is a crucial component within the Graphile ecosystem, providing a collection of plugins for `graphile-build` that enable the automatic generation of a GraphQL schema directly from a PostgreSQL database. It achieves this by introspecting the database using `pg-introspection` and constructing a `@dataplan/pg` registry. This registry then informs the creation of GraphQL types, fields, and high-performance `grafast` plan resolver functions, ensuring optimal data fetching. The current stable version is 5.0.1, part of the larger Graphile Crystal (v5) release. This package is a cornerstone of PostGraphile v5, offering significant performance advantages over traditional `DataLoader`-based GraphQL solutions by virtually eliminating the N+1 query problem through `grafast`'s advanced query planning. It is designed for modern Node.js environments, requiring `Node.js >=22`.
Traffic · last 30 days ↑33% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇦🇺 Australia · 🇩🇪 Germany