Skip to content

Commit

Permalink
fix: incorrect @sharable definition in federation v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mak626 committed Apr 22, 2024
1 parent 06c5e1e commit bee1ded
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions graphene_federation/apollo_versions/v2_2.py
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -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

0 comments on commit bee1ded

Please sign in to comment.