Gathering detailed insights and metrics for @subql/x-graphile-build-pg
Gathering detailed insights and metrics for @subql/x-graphile-build-pg
Gathering detailed insights and metrics for @subql/x-graphile-build-pg
Gathering detailed insights and metrics for @subql/x-graphile-build-pg
Monorepo home of graphile-build, graphile-build-pg, graphile-utils, postgraphile-core and graphql-parse-resolve-info. Build a high-performance easily-extensible GraphQL schema by combining plugins!
npm install @subql/x-graphile-build-pg
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (75.9%)
TypeScript (17.58%)
PLpgSQL (5.61%)
Shell (0.92%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
762 Stars
1,110 Commits
130 Forks
10 Watchers
21 Branches
62 Contributors
Updated on Jul 11, 2025
Latest Version
4.13.0-0.2.5
Package Id
@subql/x-graphile-build-pg@4.13.0-0.2.5
Unpacked Size
1.74 MB
Size
406.17 kB
File Count
159
NPM Version
6.14.15
Node Version
14.18.1
Published on
Jul 03, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
5
graphile-build-pg
is a collection of Graphile Engine plugins that allow you
to extend your GraphQL schema with high-performance types and fields based on
resources found in your PostgreSQL database schema.
To help us develop this software sustainably under the MIT license, we ask all individuals and businesses that use it to help support its ongoing maintenance and development via sponsorship.
And please give some love to our featured sponsors 🤩:
![]() Surge * | ![]() Netflix * | ![]() The Guild * | ![]() Qwick * |
![]() Chad Furman * | ![]() Dovetail * | ![]() Enzuzo * | ![]() Stellate * |
* Sponsors the entire Graphile suite
Thanks to Graphile Engine's advanced query
look-ahead features,
the plugins in this package do not exhibit the N+1 query problem common in
many database-based GraphQL APIs. For all but the flattest GraphQL queries
these plugins typically outperform DataLoader
-based solutions.
An example of an application built on graphile-build-pg
is
PostGraphile which with one
command connects to your PostgreSQL database and provides a full highly
performant standards-compliant GraphQL API.
It is recommended that you use PostGraphile directly unless you really want to get low level access to this library.
If you prefer to use the plugins yourself it's advised that you use the
defaultPlugins
export from graphile-build-pg
and then create a new array
based on that into which you may insert or remove specific plugins. This is
because it is ordered in a way to ensure the plugins work correctly (and we
may still split up or restructure the plugins).
defaultPlugins
An array of graphql-build plugins in the correct order to generate a
well-thought-out GraphQL object tree based on your PostgreSQL schema. This is
the array that postgraphile-core
uses.
1import { defaultPlugins, getBuilder } from "graphile-build";
2import { defaultPlugins as pgDefaultPlugins } from "graphile-build-pg";
3
4async function getSchema(
5 pgConfig = process.env.DATABASE_URL,
6 pgSchemas = ["public"],
7 additionalPlugins = []
8) {
9 return getBuilder(
10 [...defaultPlugins, ...pgDefaultPlugins, ...additionalPlugins],
11 {
12 pgConfig,
13 pgSchemas,
14 pgExtendedTypes: true,
15 }
16 );
17}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
9 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 7
Reason
Found 11/25 approved changesets -- score normalized to 4
Reason
security policy file detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
32 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More