Skip to content

Commit 7116f74

Browse files
authored
update SDL generation logic to work with applied directives (#231)
`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: #227 * resolves: #216 * supersedes: #223
1 parent 0348f52 commit 7116f74

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1168
-1923
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ max_line_length = 200
2323
[*.kts]
2424
indent_size = 4
2525
max_line_length = 200
26+
27+
[*.graphql]
28+
indent_size = 2

0 commit comments

Comments
 (0)