Skip to content

Commit

Permalink
mark PageInfo @Shareable
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-sureshkumar committed Oct 6, 2022
1 parent 6aca651 commit 10bcb9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_federation/shareable.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_shareable_types(schema: Schema) -> dict[str, Any]:
for type_name, type_ in schema.graphql_schema.type_map.items():
if not hasattr(type_, "graphene_type"):
continue
if getattr(type_.graphene_type, "_shareable", False):
if type_name == "PageInfo" or getattr(type_.graphene_type, "_shareable", False):
shareable_types[type_name] = type_.graphene_type
return shareable_types

Expand Down

0 comments on commit 10bcb9a

Please sign in to comment.