-
Notifications
You must be signed in to change notification settings - Fork 172
Scan directives arguments while parsing schema #764
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
Conversation
hey @oryan-block , is there a timeline for when this fix will be released? |
@LucianRadu soon. I was hoping to get some feedback before releasing. |
@oryan-block I checked out master and built locally and am seeing another issue. When I build and install 13.1.1-SNAPSHOT locally I am now seeing the following error:
I'm assuming this is getting hung up on the following in the federation-jvm schema
I'm running the following:
I have a very basic app running for testing things out.
|
@mwt-bgoodin are you not able to provide this |
@oryan-block I had that same thought and did the following. I figured I'd wait before I added any more noise to the thread 😄 I created the following enum and mapped it:
I setup the SchemaParserConfiguration to add it to the SchemaParserDictionary
After doing that I find that I'm back a FieldSet error that brought me to this issue in the first place 😄
Looking in the federation-jvm project i see they have
|
@mwt-bgoodin you need to add this scalar to the schema parser as well. Same way you'd add other custom scalars. |
@oryan-block Thank you for the feedback on this. I implemented the following which has steered me around the issue, but I still find it odd. I suspect I'm missing something deeper.
The work I'm doing is all part of an upgrade where we depended on a very early version of federation-graphql-java (0.7.0). The 2.x versions all contain the graphqls files which get picked up during the schema scan. Documentation is tough to piece together for gluing this all together. Thank you for engaging on this. |
@mwt-bgoodin it's possible that we should be doing this automatically for people who use this federation, but I don't know much about it so it's hard to say. |
@oryan-block Yes, I was able to get it working. Thank you. |
@oryan-block As a point of final feedback, your change has fixed the original issue. As long as I provide the GraphQLScalarTypes and SchemaParserConfiguration, the directives load as expected. When I roll back to 13.1.0 I see the issue again. I would love to see this change in an official release, so I can begin using it. |
@mwt-bgoodin that's good to hear. Thanks for testing it. I'll try to get release going soon. |
Resolves #664
Checklist
Description
Added enum and input object type handling to directives. It should be possible to parse any combination of valid GraphQL directives and arguments now.