You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GraphQLTypeReference instead of proper GraphQlInputObjectType during runtime (Directive wiring) on NonNull Input types #434
My team is using the graphql-java-extended-validation library and we identified that the validations would not execute when we add the validation on a NonNull input type. Initially, we thought this would be a bug there, but now we identified that this is happening because this validation library executes over the directive wiring, and sadly at that level of execution GraphQLArguments that are NonNull hasn't the proper GraphQLInputObjectType definition for it, just has the GraphQLTypeRefernce for that type, which will later be replaced on GraphQLSchema building method. But we need the proper InputObject Definition at runtime, at Directive Wiring.
I created a test case to illustrate this issue and also pushing a PR with the solution we found to have this reference properly set at runtime without falling into infinity recursion.
changed the title [-]GraphQLTypeRefernce instead of proper GraphQlInputObjectType during runtime (Directive wiring) on NonNull Input types[/-][+]GraphQLTypeReference instead of proper GraphQlInputObjectType during runtime (Directive wiring) on NonNull Input types[/+]on Sep 16, 2020
My Project is using version 6.1.0, so would be great if this commit could be cherry-picked to a release 6.1.1 because would be very hard for us to migrate to the graphl-java 15. Case it's not possible we'll host a customized version from release 6.1.0 tag.
Activity
[-]GraphQLTypeRefernce instead of proper GraphQlInputObjectType during runtime (Directive wiring) on NonNull Input types[/-][+]GraphQLTypeReference instead of proper GraphQlInputObjectType during runtime (Directive wiring) on NonNull Input types[/+]graphql-java-kickstart#434 Add GraphQlInputObjectType reference for N…
elielsonms commentedon Sep 16, 2020
My Project is using version 6.1.0, so would be great if this commit could be cherry-picked to a release 6.1.1 because would be very hard for us to migrate to the graphl-java 15. Case it's not possible we'll host a customized version from release 6.1.0 tag.
Merge pull request #435 from elielsonms/#434_GraphQlInputObjectType_a…