Skip to content

Commit

Permalink
fix: @sharable is applied multiple times on PageInfo in multithreaded…
Browse files Browse the repository at this point in the history
… environments
  • Loading branch information
mak626 committed Apr 22, 2024
1 parent bee1ded commit 689357c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions graphene_federation/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from graphene import ObjectType, PageInfo
from graphene_directives import (
DirectiveValidationError,
SchemaDirective,
build_schema as build_directive_schema,
directive_decorator,
Expand Down Expand Up @@ -58,6 +59,9 @@ def _add_sharable_to_page_info_type(
except ValueError:
# Federation Version does not support @sharable
pass
except DirectiveValidationError:
# In multithreaded environments, @sharable is applied multiple times on PageInfo
pass


def build_schema(
Expand Down

0 comments on commit 689357c

Please sign in to comment.