File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
graphene_sqlalchemy/tests Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change 3
3
import graphene
4
4
from graphene import relay
5
5
6
- from ..fields import BatchSQLAlchemyConnectionField
7
6
from ..types import SQLAlchemyObjectType
8
7
from .models import Article , HairKind , Pet , Reporter
9
8
from .utils import is_sqlalchemy_version_less_than
@@ -17,19 +16,16 @@ class ReporterType(SQLAlchemyObjectType):
17
16
class Meta :
18
17
model = Reporter
19
18
interfaces = (relay .Node ,)
20
- connection_field_factory = BatchSQLAlchemyConnectionField .from_relationship
21
19
22
20
class ArticleType (SQLAlchemyObjectType ):
23
21
class Meta :
24
22
model = Article
25
23
interfaces = (relay .Node ,)
26
- connection_field_factory = BatchSQLAlchemyConnectionField .from_relationship
27
24
28
25
class PetType (SQLAlchemyObjectType ):
29
26
class Meta :
30
27
model = Pet
31
28
interfaces = (relay .Node ,)
32
- connection_field_factory = BatchSQLAlchemyConnectionField .from_relationship
33
29
34
30
class Query (graphene .ObjectType ):
35
31
articles = graphene .Field (graphene .List (ArticleType ))
You can’t perform that action at this time.
0 commit comments