We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee1ded commit 9fc3391Copy full SHA for 9fc3391
graphene_federation/schema.py
@@ -48,12 +48,15 @@ def _add_sharable_to_page_info_type(
48
"""
49
Add @sharable directive to PageInfo type
50
51
- if PageInfo.__name__ in schema.graphql_schema.type_map:
+
52
+ if page_info := schema.graphql_schema.type_map.get(PageInfo.__name__):
53
try:
54
# PageInfo needs @sharable directive
55
sharable = get_directive_from_name("shareable", federation_version)
56
types.append(
- directive_decorator(target_directive=sharable)(field=None)(PageInfo)
57
+ directive_decorator(target_directive=sharable)(field=None)(
58
+ page_info.graphene_type
59
+ )
60
)
61
except ValueError:
62
# Federation Version does not support @sharable
0 commit comments