diff --git a/graphene_federation/schema.py b/graphene_federation/schema.py index 61d6bc9..2ba02ae 100644 --- a/graphene_federation/schema.py +++ b/graphene_federation/schema.py @@ -3,6 +3,7 @@ from graphene import ObjectType, PageInfo from graphene_directives import ( + DirectiveValidationError, SchemaDirective, build_schema as build_directive_schema, directive_decorator, @@ -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(