-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Mutation argument loads "No object found for..." error #3869
Comments
Hey -- I'll read the content of this issue in a few minutes, but I noticed that the original body included your graphql pro bundler credential. I've created a new credential and added it to https://billing.graphql.pro. Could you please log on there, get the new credential, and update your application to to use it? Then let me know and I'll disable the old one. Thanks! |
Ah bugger sorry Robert! Shall do |
I've launched the new credentials to production, and I have deleted my revision from the history in GH. It will take a few days to naturally progress to actively developed branches. If you can stomach it I would appreciate delaying the revoke a week, but if not I can expedite on our side. Feel free to delete these comments too. |
The problem is, you can't To make it work again: field :thing, String
+ # add `ImpactType` to the schema somehow
+ field :impact, ImpactType
def resolve(impact: nil)
- "hi"
+ # just to make sure it's really getting through:
+ { thing: impact.id.to_s }
end For me, that outputs:
Does that unblock you? |
It does, thank you! |
I just got bitten by this again in a new context in a greenfield project. Luckily, I found my own ticket when Googling for answers 😆 but just wanted to note that its common enough that I ran into it twice in 6 months. Could be me being stupid too though 😋 |
No, it should really be better. I think logging some graphql info would be a good start, see #2286 for a suggestion |
The solution posted here still didn't work for me - adding the unexpected type as a field. Also the type appears to be in the schema already. |
Background: I am trying to create a minimum reproduction case for a different issue in the GraphQL Pro Pundit integration, but this is blocking me from building that out!
Describe the bug
I am attempting to follow
https://graphql-ruby.org/mutations/mutation_classes.html#auto-loading-arguments
to create a simple schema that loads a mutation argument. I can see that the code that loads the argument is reached, however this object is discarded it seems.
I am probably missing something really stupid, but until I get past this I can't validate my much more interesting bug report, so here I am.
Demo
I also tried including this in the schema but it did not change the outcome
Expected behavior
Loads the object, enters the resolver code.
Actual behavior
Resolver is never reached because argument load fails:
The text was updated successfully, but these errors were encountered: