Skip to content

Commit

Permalink
fix: graphene-federation does not work without directives in federati…
Browse files Browse the repository at this point in the history
…on version >= 2.1
  • Loading branch information
mak626 committed Jan 5, 2024
1 parent 059dc4b commit fe3ce00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_federation/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_sdl(schema: Schema) -> str:
if tagged_fields:
federation_spec_import.append('"@tag"')

if schema.federation_version >= 2.1:
if schema.federation_version >= 2.1 and hasattr(schema, "directives"):
preserved_directives = [
directive for directive in schema.directives if is_composable(directive)
]
Expand Down

0 comments on commit fe3ce00

Please sign in to comment.