Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: Found different types with the same name in the schema: EmployeeConnection, EmployeeConnection. #220

Closed
huanganqing opened this issue May 27, 2019 · 2 comments

Comments

@huanganqing
Copy link

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

class Query(graphene.ObjectType):
    node = relay.Node.Field()
    # Allow only single column sorting
    #employee = relay.Node.Field(Employee)
    department = relay.Node.Field(Department)
    #all_employees = SQLAlchemyConnectionField(Employee)
    all_employees = SQLAlchemyConnectionField(EmployeeConnection)

    # Allows sorting over multiple columns, by default over the primary key
    all_roles = SQLAlchemyConnectionField(Role)
    # Disable sorting over this field
    all_departments = SQLAlchemyConnectionField(Department, sort=None)

#schema = graphene.Schema(query=Query, types=[Department, Employee, Role])
schema = graphene.Schema(query=Query)

I got following error when i try to run app.py


line 99, in graphene_reducer
    ).format(_type.graphene_type, type)
AssertionError: Found different types with the same name in the schema: EmployeeConnection, EmployeeConnection.
@jnak
Copy link
Collaborator

jnak commented May 28, 2019

This issue has already been reported here. Closing this one so we can track it in one place.

@jnak jnak closed this as completed May 28, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics referencing this issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants