-
Notifications
You must be signed in to change notification settings - Fork 345
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
Changes to sdl field of _service object to make it compliant with the… #304
Conversation
… federation specification - if the Query type is present, it should have the @extends directive, since it extends the query type - the default schema definition should not be includeded in the sdl
Codecov Report
@@ Coverage Diff @@
## master #304 +/- ##
============================================
+ Coverage 94.42% 94.44% +0.01%
Complexity 256 256
============================================
Files 74 74
Lines 915 918 +3
Branches 169 169
============================================
+ Hits 864 867 +3
Misses 31 31
Partials 20 20
Continue to review full report at Codecov.
|
...n-federation/src/main/kotlin/com/expedia/graphql/federation/FederatedSchemaGeneratorHooks.kt
Outdated
Show resolved
Hide resolved
if all
Sounds like a bug in |
Documenting for completeness
Apollo gateway defines the base
This still does sound like a bug but indeed there is no need to include those defaults. |
...eration/src/test/kotlin/com/expedia/graphql/federation/execution/ServiceQueryResolverTest.kt
Outdated
Show resolved
Hide resolved
...n-federation/src/main/kotlin/com/expedia/graphql/federation/FederatedSchemaGeneratorHooks.kt
Outdated
Show resolved
Hide resolved
- removed empty queries from SDL - uses original query name for adding @extends directive
Thanks for the fix! |
ExpediaGroup#304) * Changes to sdl field of _service object to make it compliant with the federation specification - if the Query type is present, it should have the @extends directive, since it extends the query type - the default schema definition should not be included in the sdl - empty queries should not be present in the SDL
ExpediaGroup#304) * Changes to sdl field of _service object to make it compliant with the federation specification - if the Query type is present, it should have the @extends directive, since it extends the query type - the default schema definition should not be included in the sdl - empty queries should not be present in the SDL
… federation specification