Skip to content

Commit accd421

Browse files
committed
bump: v0.4.4
Added support for new graphene-federation Drop support for python 3.8
1 parent 8fd26f2 commit accd421

File tree

4 files changed

+208
-199
lines changed

4 files changed

+208
-199
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
15-
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python: ["3.9", "3.10", "3.11", "3.12"]
1616
runs-on: ${{ matrix.os }}
1717
steps:
1818
- uses: actions/checkout@v3

graphene_mongo/advanced_types.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import base64
22

33
import graphene
4+
from graphene_federation import shareable
45

56

7+
@shareable # Support Graphene Federation v2
68
class FileFieldType(graphene.ObjectType):
79
content_type = graphene.String()
810
md5 = graphene.String()
911
chunk_size = graphene.Int()
1012
length = graphene.Int()
1113
data = graphene.String()
1214

13-
# Support Graphene Federation v2
14-
_shareable = True
15-
1615
@classmethod
1716
def _resolve_fs_field(cls, field, name, default_value=None):
1817
v = getattr(field.instance, field.key)
@@ -38,12 +37,10 @@ def resolve_data(self, info):
3837
return None
3938

4039

40+
@shareable # Support Graphene Federation v2
4141
class _CoordinatesTypeField(graphene.ObjectType):
4242
type = graphene.String()
4343

44-
# Support Graphene Federation v2
45-
_shareable = True
46-
4744
def resolve_type(self, info):
4845
return self["type"]
4946

0 commit comments

Comments
 (0)