Skip to content

Commit bee1ded

Browse files
committed
fix: incorrect @sharable definition in federation v2.2
1 parent 06c5e1e commit bee1ded

File tree

1 file changed

+1
-2
lines changed
  • graphene_federation/apollo_versions

1 file changed

+1
-2
lines changed

graphene_federation/apollo_versions/v2_2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from graphene_directives import CustomDirective, DirectiveLocation
22
from graphql import GraphQLDirective
33

4-
from .v2_0 import shareable_directive as sharable_directive_v2_0
54
from .v2_1 import get_directives as get_directives_v2_1
65

76
shareable_directive = CustomDirective(
@@ -19,6 +18,6 @@
1918
def get_directives() -> dict[str, GraphQLDirective]:
2019
directives = get_directives_v2_1()
2120
directives.update(
22-
{directive.name: directive for directive in [sharable_directive_v2_0]}
21+
{directive.name: directive for directive in [shareable_directive]}
2322
)
2423
return directives

0 commit comments

Comments
 (0)