Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,33 +39,27 @@
"README.md"
],
"dependencies": {
"@graphile-contrib/pg-many-to-many": "^1.0.2",
"@graphile-contrib/pg-order-by-related": "^1.0.0",
"@graphile-contrib/pg-simplify-inflector": "^6.1.0",
"@graphile/pg-aggregates": "^0.1.1",
"@graphile/pg-pubsub": "^4.13.0",
"@graphile-contrib/pg-many-to-many": "^2.0.0-rc.2",
"@graphile-contrib/pg-order-by-related": "^2.0.0-rc.2",
"@graphile/pg-aggregates": "0.2.0-rc.2",
"@graphile/simplify-inflection": "^8.0.0",
"@nestjs/common": "^9.4.0",
"@nestjs/core": "^9.4.0",
"@nestjs/platform-express": "^9.4.0",
"@subql/common": "workspace:~",
"@subql/utils": "workspace:~",
"@subql/x-graphile-build-pg": "4.13.0-0.2.5",
"@subql/x-postgraphile-core": "4.13.0-0.2.0",
"apollo-server-express": "^3.12.0",
"compression": "^1.8.0",
"graphile-build": "^4.12.2",
"graphile-utils": "^4.13.0",
"graphql": "^15.8.0",
"graphql-query-complexity": "^0.11.0",
"graphql-ws": "^5.16.0",
"grafast": "^1.0.2",
"graphile-build": "^5.0.0",
"graphql": "^16.9.0",
"graphql-query-complexity": "^0.7.0",
"lodash": "^4.17.21",
"pg": "^8.12.0",
"pg-tsquery": "^8.4.2",
"pino-http": "^5.8.0",
"postgraphile": "^4.13.0",
"postgraphile-plugin-connection-filter": "^2.2.2",
"postgraphile": "^5.0.3",
"postgraphile-plugin-connection-filter": "^3.0.0",
"rxjs": "^7.1.0",
"ws": "^8.18.0",
"yargs": "^16.2.0"
},
"devDependencies": {
Expand All @@ -75,7 +69,6 @@
"@types/express": "^4.17.21",
"@types/jest": "^27.5.2",
"@types/lodash": "^4.17.20",
"@types/ws": "^8",
"@types/yargs": "^16.0.9",
"nodemon": "^3.1.4"
}
Expand Down
11 changes: 3 additions & 8 deletions packages/query/src/configure/configure.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {Pool, PoolConfig} from 'pg';
import {getLogger} from '../utils/logger';
import {getYargsOption} from '../yargs';
import {Config} from './config';
import {debugPgClient} from './x-postgraphile/debugClient';

async function ensurePool(poolConfig: PoolConfig): Promise<Pool> {
const pgPool = new Pool(poolConfig);
Expand Down Expand Up @@ -78,13 +77,9 @@ export class ConfigureModule {
// tslint:disable-next-line no-console
getLogger('db').error('PostgreSQL client generated error: ', err.message);
});
if (opts['query-explain']) {
pgPool.on('connect', (pgClient) => {
// Enhance our Postgres client with debugging stuffs.
debugPgClient(pgClient, getLogger('explain'));
pgClient._explainResults = [];
});
}
// In v5, query explain is controlled via the preset's `grafast.explain`
// option (set in graphql.module.ts) and gated by the `x-graphql-explain`
// HTTP header per-request. The `--query-explain` CLI flag is wired there.
return {
module: ConfigureModule,
providers: [
Expand Down
125 changes: 0 additions & 125 deletions packages/query/src/configure/x-postgraphile/debugClient.ts

This file was deleted.

Loading