Skip to content

fix: resolve CI TypeScript build errors and ESLint violations in PostGraphile v5 integration#9342

Draft
Copilot wants to merge 15 commits intomasterfrom
copilot/update-postgraphile-to-latest
Draft

fix: resolve CI TypeScript build errors and ESLint violations in PostGraphile v5 integration#9342
Copilot wants to merge 15 commits intomasterfrom
copilot/update-postgraphile-to-latest

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 19, 2026

  • Investigate CI failures (TS2307 + TS2322 in three PostGraphile packages)
  • Fix root cause: tsconfig.build.json uses moduleResolution: node which cannot resolve package exports subpath entries (postgraphile/presets/amber, @dataplan/pg/adaptors/pg)
  • Add ambient module declarations in declarations.d.ts as fallbacks for moduleResolution: node (ignored when moduleResolution: bundler resolves via exports map)
  • Add declare namespace GraphileConfig { interface PgAdaptors } augmentation so pgServices element type is never never[] (fixes TypeScript 6's stricter any-to-never check)
Original prompt

This section details on the original issue you should resolve

<issue_title>Update Postgraphile to the latest</issue_title>
<issue_description>Currently the postgraphile version that Mesh handler uses has an older version of GraphQL js which leads conflicts when you use the newer version.
</issue_description>

Comments on the Issue (you are @copilot in this section)


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 19, 2026

Apollo Federation Subgraph Compatibility Results

Federation 1 Support Federation 2 Support
_service🟢
@key (single)🟢
@key (multi)🟢
@key (composite)🟢
repeatable @key🟢
@requires🟢
@provides🟢
federated tracing🟢
@link🟢
@shareable🟢
@tag🟢
@override🟢
@inaccessible🟢
@composeDirective🟢
@interfaceObject🟢

Learn more:

@theguild-bot
Copy link
Copy Markdown
Collaborator

theguild-bot commented Mar 19, 2026

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-mesh/cache-redis 0.105.16-alpha-20260319214603-983664279a422c5a50ad9696c5dbd920928708e0 npm ↗︎ unpkg ↗︎
@graphql-mesh/odata 0.106.34-alpha-20260319214603-983664279a422c5a50ad9696c5dbd920928708e0 npm ↗︎ unpkg ↗︎
@graphql-mesh/postgraphile 0.104.32-alpha-20260319214603-983664279a422c5a50ad9696c5dbd920928708e0 npm ↗︎ unpkg ↗︎
@graphql-mesh/soap 0.107.35-alpha-20260319214603-983664279a422c5a50ad9696c5dbd920928708e0 npm ↗︎ unpkg ↗︎
@omnigraph/odata 0.2.34-alpha-20260319214603-983664279a422c5a50ad9696c5dbd920928708e0 npm ↗︎ unpkg ↗︎
@omnigraph/soap 0.107.34-alpha-20260319214603-983664279a422c5a50ad9696c5dbd920928708e0 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-operation-headers 1.4.32-alpha-20260319214603-983664279a422c5a50ad9696c5dbd920928708e0 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-odata 0.2.34-alpha-20260319214603-983664279a422c5a50ad9696c5dbd920928708e0 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-soap 0.10.34-alpha-20260319214603-983664279a422c5a50ad9696c5dbd920928708e0 npm ↗︎ unpkg ↗︎

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 19, 2026

💻 Website Preview

The latest changes are available as preview in: https://1162c8e5.graphql-mesh.pages.dev

Copilot AI changed the title [WIP] Update Postgraphile to the latest version Update postgraphile and postgraphile-core to 4.14.1 Mar 19, 2026
Copilot AI requested a review from ardatan March 19, 2026 21:43
Copilot stopped work on behalf of ardatan due to an error March 22, 2026 09:28
Copilot AI changed the title Update postgraphile and postgraphile-core to 4.14.1 feat: Add PostGraphile source handler and transport for Mesh v1 Mar 22, 2026
@ardatan ardatan force-pushed the copilot/update-postgraphile-to-latest branch from e1ea9bc to 49577de Compare March 22, 2026 09:52
…ew files

- Fix TS2416: import ExecutionResult from @graphql-tools/utils in hive and rate-limit transforms
- Fix TS2322: import ExecutionResult from @graphql-tools/utils in graphql handler
- Fix TS2418: cast [MapperKind.FIELD] mappers as any in compose.ts and federation.ts
- Fix ESLint no-floating-promises: add eslint-disable comment for pgPool.end() in legacy postgraphile handler
- Update navigation: remove '(soon)' from PostgreSQL page label

Co-authored-by: ardatan <20847995+ardatan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ardatan/graphql-mesh/sessions/ecc3688b-bc50-4449-b30a-a02a1ce32939
Copilot AI changed the title feat: Add PostGraphile source handler and transport for Mesh v1 fix: resolve CI TypeScript build errors and ESLint violations in PostGraphile v5 integration Mar 22, 2026
- Replace postgraphile/dist/presets/amber with postgraphile/presets/amber
- Replace @dataplan/pg/dist/adaptors/pg with @dataplan/pg/adaptors/pg
- Update version ranges: postgraphile ^5.0.0-rc.0 -> ^5.0.0, grafast ^1.0.0-rc.0 -> ^1.0.0, @dataplan/pg ^1.0.0-rc.0 -> ^1.0.0
- Update yarn.lock to resolve stable packages
- Update changeset to reflect stable versions

Agent-Logs-Url: https://github.com/ardatan/graphql-mesh/sessions/705dd821-ff30-4b7f-9292-f95320d1eb26

Co-authored-by: ardatan <20847995+ardatan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Postgraphile to the latest

3 participants