@@ -12,7 +12,7 @@ class Meta:
12
12
interfaces = (relay .Node , )
13
13
14
14
15
- class DepartmentConnection (relay .Connection ):
15
+ class DepartmentConn (relay .Connection ):
16
16
class Meta :
17
17
node = Department
18
18
@@ -23,7 +23,7 @@ class Meta:
23
23
interfaces = (relay .Node , )
24
24
25
25
26
- class EmployeeConnection (relay .Connection ):
26
+ class EmployeeConn (relay .Connection ):
27
27
class Meta :
28
28
node = Employee
29
29
@@ -34,7 +34,7 @@ class Meta:
34
34
interfaces = (relay .Node , )
35
35
36
36
37
- class RoleConnection (relay .Connection ):
37
+ class RoleConn (relay .Connection ):
38
38
class Meta :
39
39
node = Role
40
40
@@ -47,14 +47,14 @@ class Query(graphene.ObjectType):
47
47
node = relay .Node .Field ()
48
48
# Allow only single column sorting
49
49
all_employees = SQLAlchemyConnectionField (
50
- EmployeeConnection ,
50
+ EmployeeConn ,
51
51
sort = graphene .Argument (
52
52
SortEnumEmployee ,
53
53
default_value = utils .EnumValue ('id_asc' , EmployeeModel .id .asc ())))
54
54
# Allows sorting over multiple columns, by default over the primary key
55
- all_roles = SQLAlchemyConnectionField (RoleConnection )
55
+ all_roles = SQLAlchemyConnectionField (RoleConn )
56
56
# Disable sorting over this field
57
- all_departments = SQLAlchemyConnectionField (DepartmentConnection , sort = None )
57
+ all_departments = SQLAlchemyConnectionField (DepartmentConn , sort = None )
58
58
59
59
60
60
schema = graphene .Schema (query = Query , types = [Department , Employee , Role ])
0 commit comments