Skip to content

Commit ddff92a

Browse files
Merge pull request #1 from graphql-python/master
Support Graphene Federation
2 parents 0fea0b0 + 10fbf73 commit ddff92a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

graphene_mongo/advanced_types.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ class FileFieldType(graphene.ObjectType):
99
length = graphene.Int()
1010
data = graphene.String()
1111

12+
# Support Graphene Federation v2
13+
_shareable = True
14+
1215
@classmethod
1316
def _resolve_fs_field(cls, field, name, default_value=None):
1417
v = getattr(field.instance, field.key)
@@ -37,6 +40,9 @@ def resolve_data(self, info):
3740
class _CoordinatesTypeField(graphene.ObjectType):
3841
type = graphene.String()
3942

43+
# Support Graphene Federation v2
44+
_shareable = True
45+
4046
def resolve_type(self, info):
4147
return self["type"]
4248

0 commit comments

Comments
 (0)