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
A new field must be added to the query root called _service. This field must return a non-nullable _Service type. The _service >field on the query root must return SDL which includes all of the service's types (after any non-federation transforms), as well as >federation directive annotations on the fields and types. The federation schema modifications (i.e. new types and directive >definitions) should not be included in this SDL.
Schema transformer currently creates the field returning nullable type
_service: _Service
The text was updated successfully, but these errors were encountered:
`FederationSdlPrinter` is a copy of a `graphql.schema.idl.SchemaPrinter` from `graphql-java` v17 with some custom filtering logic that was required for Federation v1.
`graphql-java` v18 introduced concept of applied directive to make a distinction from the directive definition (previously same `GraphQLDirective` type was used for both). This PR drops our custom copy of the schema printer and instead updates our logic to rely on the built-in schema printer provided by the `graphql-java`. Using custom predicates for filtering directives and schema elements we can replicate our custom functionality without the need of a custom printer.
Related:
* resolves: apollographql#227
* resolves: apollographql#216
* supersedes: apollographql#223
Per the subgraph specification:
Schema transformer currently creates the field returning nullable type
The text was updated successfully, but these errors were encountered: