-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
Default plan resolver should use .get(...)
if possible
#2306
Comments
.get(...)
if possible
Hmmm... This is weird because it should work: crystal/grafast/grafast/src/engine/OperationPlan.ts Lines 3799 to 3806 in 5dd99a0
crystal/grafast/grafast/src/engine/OperationPlan.ts Lines 1091 to 1093 in 5dd99a0
|
Are you using |
I think you must be using makeWrapPlansPlugin and you're wrapping this resolver on the mutation payload for some reason; I can see that the fallback in makeWrapPlansPlugin is the old-style default plan which doesn't use crystal/graphile-build/graphile-utils/src/makeWrapPlansPlugin.ts Lines 145 to 151 in 5dd99a0
Please confirm whether or not this is the case. Either way, please actually create and share a minimal reproduction in future and test that it reproduces the issue rather than just sharing a small excerpt of what you think is causing it; it will likely save me significant time. We're lucky I could intuit it this time around... assuming I'm correct. |
Yes. I think you are right. I will make an exact reproduction of the error and reopen the issue |
Either way, the makeWrapPlansPlugin default resolver needs fixing so I'll leave it open. |
Summary
When I try to wrap a step result in
object
I get an error:Steps to reproduce
A code example:
There is no problem when it returns
assets.get({ id: $id })
The issues will be fixed if you add the following plan:
Expected results
You don't have to add the
CreateAssetPayload
plan resolverAdditional context
My PostGraphile version is
5.0.0-beta.35
The text was updated successfully, but these errors were encountered: