Skip to content

Commit

Permalink
Fix naming bug of EmployeeConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Guilherme Siqueira Moreira committed Aug 26, 2019
1 parent 2b0098d commit 30915e6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions schema.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
import graphene
from graphene import relay
from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField
from models import (Department as DepartmentModel, Employee as EmployeeModel)
from models import Department, Employee


class Department(SQLAlchemyObjectType):
class DepartmentNode(SQLAlchemyObjectType):
class Meta:
model = DepartmentModel
model = Department
interfaces = (relay.Node,)


class DepartmentConnection(relay.Connection):
class Meta:
node = Department
node = DepartmentNode


class Employee(SQLAlchemyObjectType):
class EmployeeNode(SQLAlchemyObjectType):
class Meta:
model = EmployeeModel
model = Employee
interfaces = (relay.Node,)


class EmployeeConnection(relay.Connection):
class Meta:
node = Employee
node = EmployeeNode


class Query(graphene.ObjectType):
Expand Down

0 comments on commit 30915e6

Please sign in to comment.