convert_names_case and snake_case_fallback_resolvers #1102
Replies: 2 comments
-
Can you show minimal reproduction code for the issue? We have tests in place for this and they work. |
Beta Was this translation helpful? Give feedback.
-
This got put on a back burner, and I switched jobs. But I figured out what was going on.
I think this code is executed early on, and adds a resolver to anything with the directive.
Instead of using the default resolver, I just do the same that that ariadne is doing if the resolver was missing. |
Beta Was this translation helpful? Give feedback.
-
The claim is snake_case_fallback_resolvers is being deprecated.
I removed the resolve and set convert_names_case to true in my make_executable_schema call.
With snake_case_fallback_resolvers set, everything works.
When I remove it and set convert_names_case I get an error saying one of my required fields is null (This is as far as my testing has gone, so there may be other issues.
My object has a "is_user_active" field. When I return this object I get the error that isUserActive isn't set.
Now when I use convert_names_case, it appears to work as a replacement for @convert_kwargs_to_snake_case (although I haven't completed my testing, I did see another discussion that nest objects don't seem to be converted)
But is convert_names_case=True also replacing snake_case_fallback_resolvers?
Beta Was this translation helpful? Give feedback.
All reactions