{"library":"graphile-build-pg","type":"library","category":null,"description":"`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`.","language":"javascript","status":"active","version":"5.0.1","tags":["javascript","graphile","graphql","engine","postgraphile","pg","postgres","postgresql","graphqljs","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install graphile-build-pg","imports":["import { sql } from 'graphile-build-pg';","import { SQL } from 'graphile-build-pg';","import { defaultPlugins } from 'graphile-build-pg';"]},{"cmd":"yarn add graphile-build-pg","imports":[]},{"cmd":"pnpm add graphile-build-pg","imports":[]}],"homepage":"https://www.graphile.org","github":"https://github.com/graphile/crystal","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/graphile-build-pg","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/graphile-build-pg/compatibility"}}