We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a383dd8 commit d2d9df0Copy full SHA for d2d9df0
src/makeCache.js
@@ -1,14 +1,14 @@
1
// This script is called from scripts/generate-cache
2
-const { createPostGraphileSchema } = require('postgraphile-core');
+const { createPostGraphileSchema } = require('postgraphile');
3
const { options } = require('./postgraphileOptions');
4
-const pg = require('pg');
+const { Pool } = require('pg');
5
6
const schemas = process.env.DATABASE_SCHEMAS
7
? process.env.DATABASE_SCHEMAS.split(',')
8
: ['app_public'];
9
10
async function main() {
11
- const pgPool = new pg.Pool({
+ const pgPool = new Pool({
12
connectionString: process.env.DATABASE_URL,
13
});
14
await createPostGraphileSchema(pgPool, schemas, {
0 commit comments