From bee1ded30d736d9e9a3cdd5b307254ff4731f0d6 Mon Sep 17 00:00:00 2001 From: M Aswin Kishore <60577077+mak626@users.noreply.github.com> Date: Mon, 22 Apr 2024 15:41:57 +0530 Subject: [PATCH] fix: incorrect @sharable definition in federation v2.2 --- graphene_federation/apollo_versions/v2_2.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/graphene_federation/apollo_versions/v2_2.py b/graphene_federation/apollo_versions/v2_2.py index 18a7b6e..7842917 100644 --- a/graphene_federation/apollo_versions/v2_2.py +++ b/graphene_federation/apollo_versions/v2_2.py @@ -1,7 +1,6 @@ from graphene_directives import CustomDirective, DirectiveLocation from graphql import GraphQLDirective -from .v2_0 import shareable_directive as sharable_directive_v2_0 from .v2_1 import get_directives as get_directives_v2_1 shareable_directive = CustomDirective( @@ -19,6 +18,6 @@ def get_directives() -> dict[str, GraphQLDirective]: directives = get_directives_v2_1() directives.update( - {directive.name: directive for directive in [sharable_directive_v2_0]} + {directive.name: directive for directive in [shareable_directive]} ) return directives