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

Add PgOrderByRelatedPlugin to GraphQL query package #2616

Merged
merged 2 commits into from
Dec 3, 2024
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
5 changes: 3 additions & 2 deletions packages/query/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- High CPU usage caused by interval with 0ms (#2614)
### Added
- Add PgOrderByRelatedPlugin to GraphQL query package

## [2.17.1] - 2024-11-28
### Fixed
Expand Down Expand Up @@ -382,8 +384,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- overwrite plugin to fix one to one unique key check
- update query publish and docker build process

[Unreleased]: https://github.com/subquery/subql/compare/query/2.17.1...HEAD
[2.17.1]: https://github.com/subquery/subql/compare/query/2.17.0...query/2.17.1
[Unreleased]: https://github.com/subquery/subql/compare/query/2.17.0...HEAD
[2.17.0]: https://github.com/subquery/subql/compare/query/2.16.0...query/2.17.0
[2.16.0]: https://github.com/subquery/subql/compare/query/2.15.2...query/2.16.0
[2.15.2]: https://github.com/subquery/subql/compare/query/2.15.1...query/2.15.2
Expand Down
1 change: 1 addition & 0 deletions packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
],
"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",
Expand Down
2 changes: 2 additions & 0 deletions packages/query/src/graphql/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import PgConnectionTotalCount from '@subql/x-graphile-build-pg/node8plus/plugins
import PgSimplifyInflectorPlugin from '@graphile-contrib/pg-simplify-inflector';
import PgManyToManyPlugin from '@graphile-contrib/pg-many-to-many';
import ConnectionFilterPlugin from 'postgraphile-plugin-connection-filter';
import PgOrderByRelatedPlugin from '@graphile-contrib/pg-order-by-related';

// custom plugins
import PgConnectionArgFirstLastBeforeAfter from './PgConnectionArgFirstLastBeforeAfter';
Expand Down Expand Up @@ -113,6 +114,7 @@ const plugins = [
PgRowByVirtualIdPlugin,
PgDistinctPlugin,
PgSearchPlugin,
PgOrderByRelatedPlugin,
makeAddInflectorsPlugin((inflectors) => {
const {constantCase: oldConstantCase} = inflectors;
const enumValues = new Set();
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4050,6 +4050,13 @@ __metadata:
languageName: node
linkType: hard

"@graphile-contrib/pg-order-by-related@npm:^1.0.0":
version: 1.0.0
resolution: "@graphile-contrib/pg-order-by-related@npm:1.0.0"
checksum: e5fa3655075b6c499926cf954e809ff827d23710919662a4a1de5a342b2d9874f7b5d47e4d7924aa8da65a3e33e716c57326358ef4cb8812ea125e21abefdd31
languageName: node
linkType: hard

"@graphile-contrib/pg-simplify-inflector@npm:^6.1.0":
version: 6.1.0
resolution: "@graphile-contrib/pg-simplify-inflector@npm:6.1.0"
Expand Down Expand Up @@ -6860,6 +6867,7 @@ __metadata:
resolution: "@subql/query@workspace:packages/query"
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
Expand Down
Loading