Skip to content

Commit b5a7e67

Browse files
mark PageInfo @Shareable
1 parent 6aca651 commit b5a7e67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graphene_federation/shareable.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ def get_shareable_fields(schema: Schema) -> dict:
5959
if not hasattr(type_, "graphene_type"):
6060
continue
6161
for field in list(type_.graphene_type.__dict__):
62-
if getattr(getattr(type_.graphene_type, field), "_shareable", False):
62+
if type_name == "PageInfo" or getattr(
63+
getattr(type_.graphene_type, field), "_shareable", False
64+
):
6365
shareable_fields[type_name] = type_.graphene_type
6466
continue
6567
return shareable_fields

0 commit comments

Comments
 (0)