Skip to content

Conversation

@benjie
Copy link
Member

@benjie benjie commented Jan 7, 2026

When a field has resolve() or subscribe() and no plan() then resolver emulation is used, and the default plan resolver is NOT used. Previously wrapPlans() would introduce (and wrap) the default resolver in these cases, which would break resolver emulation. We now refuse to do this.

benjie added 3 commits January 7, 2026 10:55
…ld that both has no plan and either has a `resolve()` or `subscribe()` method (i.e. resolver emulation will be used). This is done by simply skipping wrapping the resolver, and emitting a warning to the console. This is a breaking fix as fields that may have previously had the default plan resolver wrapped may no longer do so, but should not impact anyone running a "pure" PostGraphile/Grafast schema (it only impacts you if you are using traditional (non-plan) resolvers, e.g. via `extendSchema()`, and you're also using `wrapPlans()` to target these same fields).
@github-project-automation github-project-automation bot moved this to 🌳 Triage in V5.0.0 Jan 7, 2026
@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2026

🦋 Changeset detected

Latest commit: ced4abe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
graphile-utils Patch
postgraphile Patch
pgl Patch
graphile Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@benjie benjie enabled auto-merge January 7, 2026 11:15
@benjie benjie merged commit b2802f9 into main Jan 7, 2026
46 checks passed
@benjie benjie deleted the no-wrap-plans-resolver branch January 7, 2026 11:28
@github-project-automation github-project-automation bot moved this from 🌳 Triage to ✅ Done in V5.0.0 Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants