Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update postgraphile, enable table partitions #1520

Merged
merged 1 commit into from
Feb 16, 2023
Merged
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
6 changes: 3 additions & 3 deletions packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"@nestjs/platform-express": "^8.2.6",
"@subql/common": "workspace:*",
"@subql/utils": "workspace:*",
"@subql/x-graphile-build-pg": "^4.12.3-0.1.0",
"@subql/x-postgraphile-core": "^4.12.3-0.1.0",
"@subql/x-graphile-build-pg": "4.13.0-0.2.1",
"@subql/x-postgraphile-core": "4.13.0-0.2.0",
"apollo-server-express": "^3.6.2",
"express-pino-logger": "^6.0.0",
"graphile-build": "^4.12.2",
Expand All @@ -48,7 +48,7 @@
"graphql-query-complexity": "^0.11.0",
"lodash": "^4.17.21",
"pg": "^8.7.1",
"postgraphile": "^4.12.9",
"postgraphile": "^4.13.0",
"postgraphile-plugin-connection-filter": "^2.2.2",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
Expand Down
1 change: 1 addition & 0 deletions packages/query/src/graphql/graphql.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export class GraphqlModule implements OnModuleInit, OnModuleDestroy {
dynamicJson: true,
graphileBuildOptions: {
connectionFilterRelations: true,
pgUsePartitionedParent: true,
},
};

Expand Down
90 changes: 72 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4193,8 +4193,8 @@ __metadata:
"@nestjs/testing": ^8.2.6
"@subql/common": "workspace:*"
"@subql/utils": "workspace:*"
"@subql/x-graphile-build-pg": ^4.12.3-0.1.0
"@subql/x-postgraphile-core": ^4.12.3-0.1.0
"@subql/x-graphile-build-pg": 4.13.0-0.2.1
"@subql/x-postgraphile-core": 4.13.0-0.2.0
"@types/express": ^4.17.13
"@types/express-pino-logger": ^4.0.3
"@types/jest": ^27.4.0
Expand Down Expand Up @@ -4347,21 +4347,21 @@ __metadata:
languageName: unknown
linkType: soft

"@subql/x-graphile-build-pg@npm:4.12.3-0.1.0, @subql/x-graphile-build-pg@npm:^4.12.3-0.1.0":
version: 4.12.3-0.1.0
resolution: "@subql/x-graphile-build-pg@npm:4.12.3-0.1.0"
"@subql/x-graphile-build-pg@npm:4.13.0-0.2.1":
version: 4.13.0-0.2.1
resolution: "@subql/x-graphile-build-pg@npm:4.13.0-0.2.1"
dependencies:
"@graphile/lru": 4.11.0
chalk: ^2.4.2
debug: ^4.1.1
graphile-build: 4.12.3
jsonwebtoken: ^8.5.1
graphile-build: 4.13.0
jsonwebtoken: ^9.0.0
lodash: ">=4 <5"
lru-cache: ">=4 <5"
pg-sql2: 4.12.3
pg-sql2: 4.13.0
peerDependencies:
pg: ">=6.1.0 <9"
checksum: a2f6632b3fbb0e3930932069fca1dc0c8f390df8c20472b1b20f13fb588d801077ed46c19188de90db99ae0349a62244c4d974e8303006c50fda59ca7aa98fc1
checksum: 889d02e05312f78d12a9c332ed730bcfe40373e3354b09383d9693dffe088f854e7ca698db74d4266a73154ac208e513885e7937343aedea71dce07ab114dbc7
languageName: node
linkType: hard

Expand All @@ -4380,17 +4380,17 @@ __metadata:
languageName: node
linkType: hard

"@subql/x-postgraphile-core@npm:^4.12.3-0.1.0":
version: 4.12.3-0.1.0
resolution: "@subql/x-postgraphile-core@npm:4.12.3-0.1.0"
"@subql/x-postgraphile-core@npm:4.13.0-0.2.0":
version: 4.13.0-0.2.0
resolution: "@subql/x-postgraphile-core@npm:4.13.0-0.2.0"
dependencies:
"@subql/x-graphile-build-pg": 4.12.3-0.1.0
"@subql/x-graphile-build-pg": 4.13.0-0.2.1
graphile-build: 4.12.3
tslib: ^2.0.1
peerDependencies:
graphql: ">=0.9 <0.14 || ^14.0.2 || ^15.4.0"
pg: ">=6.1.0 <9"
checksum: 70fb38ad502931e732c7fea3ef10e3bbf770f3d8efb8e393a11b2250803644ac6dd2ed19870135b5459c19fea64fe7db3ab53173854d26af5d4f3b7d4068da42
checksum: 2f87b78ca021b7314e8a2c2cbf5a732a64d714558cd36d64a0c5e298f1cd8941f894effb6f0d3ab3c5e1513d53f4bdc901baa56ede79927c7b389bd306db030f
languageName: node
linkType: hard

Expand Down Expand Up @@ -10114,6 +10114,25 @@ __metadata:
languageName: node
linkType: hard

"graphile-build@npm:4.13.0":
version: 4.13.0
resolution: "graphile-build@npm:4.13.0"
dependencies:
"@graphile/lru": 4.11.0
chalk: ^2.4.2
debug: ^4.1.1
graphql-parse-resolve-info: 4.13.0
iterall: ^1.2.2
lodash: ">=4 <5"
lru-cache: ^5.0.0
pluralize: ^7.0.0
semver: ^6.0.0
peerDependencies:
graphql: ">=0.9 <0.14 || ^14.0.2 || ^15.4.0"
checksum: bb8554e734430b88efede33c0529b4b1edc47fc56483557828ff1e98ea1bb6af08f5b9806fcc736d7ab9fe4ea79945a52c95be174ed7aaf4f8440c2cc4ec9881
languageName: node
linkType: hard

"graphile-utils@npm:^4.12.0-alpha.0, graphile-utils@npm:^4.12.2":
version: 4.12.2
resolution: "graphile-utils@npm:4.12.2"
Expand Down Expand Up @@ -10152,6 +10171,18 @@ __metadata:
languageName: node
linkType: hard

"graphql-parse-resolve-info@npm:4.13.0":
version: 4.13.0
resolution: "graphql-parse-resolve-info@npm:4.13.0"
dependencies:
debug: ^4.1.1
tslib: ^2.0.1
peerDependencies:
graphql: ">=0.9 <0.14 || ^14.0.2 || ^15.4.0 || ^16.3.0"
checksum: a0ac79196d9a7b884a24ce59576a4537431db79536039f97a496dd4fcf919da0a481115b4d08d8b4e7ea646b2decbf67a1b589875ecbc437f269a7acc4dea893
languageName: node
linkType: hard

"graphql-query-complexity@npm:^0.11.0":
version: 0.11.0
resolution: "graphql-query-complexity@npm:0.11.0"
Expand Down Expand Up @@ -12224,6 +12255,18 @@ __metadata:
languageName: node
linkType: hard

"jsonwebtoken@npm:^9.0.0":
version: 9.0.0
resolution: "jsonwebtoken@npm:9.0.0"
dependencies:
jws: ^3.2.2
lodash: ^4.17.21
ms: ^2.1.1
semver: ^7.3.8
checksum: b9181cecf9df99f1dc0253f91ba000a1aa4d91f5816d1608c0dba61a5623726a0bfe200b51df25de18c1a6000825d231ad7ce2788aa54fd48dcb760ad9eb9514
languageName: node
linkType: hard

"just-diff-apply@npm:^5.2.0":
version: 5.2.0
resolution: "just-diff-apply@npm:5.2.0"
Expand Down Expand Up @@ -14448,17 +14491,17 @@ __metadata:
languageName: node
linkType: hard

"pg-sql2@npm:4.12.3":
version: 4.12.3
resolution: "pg-sql2@npm:4.12.3"
"pg-sql2@npm:4.13.0":
version: 4.13.0
resolution: "pg-sql2@npm:4.13.0"
dependencies:
"@graphile/lru": 4.11.0
"@types/pg": ">=6 <9"
debug: ">=3 <5"
tslib: ^2.0.1
peerDependencies:
pg: ">=6.1.0 <9"
checksum: 3b7644b38138b24d204153e053f4ee798c30a75b8bec89bcdad835eb32aa0f0e3f6cbed84f2d934e08f3fb8e8589a7e3f5a78a0a468d3d8678cababe77b1f299
checksum: a9ada8a0113d9ea24e435acd627f080512c5b15248afefb0a67e4d01415c8d692b25d731cce58345b0cbef6fab334471b5cb4c5e7a07dc85ded98160aa61cbc2
languageName: node
linkType: hard

Expand Down Expand Up @@ -15808,6 +15851,17 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:^7.3.8":
version: 7.3.8
resolution: "semver@npm:7.3.8"
dependencies:
lru-cache: ^6.0.0
bin:
semver: bin/semver.js
checksum: ba9c7cbbf2b7884696523450a61fee1a09930d888b7a8d7579025ad93d459b2d1949ee5bbfeb188b2be5f4ac163544c5e98491ad6152df34154feebc2cc337c1
languageName: node
linkType: hard

"send@npm:0.17.2":
version: 0.17.2
resolution: "send@npm:0.17.2"
Expand Down