Skip to content

Commit

Permalink
fix(Schema): Entities recursion error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinand-c committed Jan 3, 2024
1 parent 90811f1 commit 666e5ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions graphene_federation/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ def build_schema(
schema.federation_version = float(
(federation_version or 2) if (enable_federation_2 or federation_version) else 1
)
federation_query = _get_query(schema, schema.query if schema else query)
kwargs = schema.__dict__
federation_query = _get_query(schema, schema.query)
# Use shallow copy to prevent recursion error
kwargs = schema.__dict__.copy()
kwargs.pop("query")
kwargs.pop("graphql_schema")
kwargs.pop("federation_version")
Expand Down

0 comments on commit 666e5ce

Please sign in to comment.