Skip to content

type object Employee has no attribute connection #272

Closed
@bjellesma

Description

@bjellesma

Hi,
I'm following the tutorial on https://docs.graphene-python.org/projects/sqlalchemy/en/latest/tutorial/ and I'm receiving the following error when I run my flask app

AttributeError: type object 'Employee' has no attribute 'connection'

The same will happen for the department object.

I'm using pipenv

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
flask = "*"
flask-socketio = "*"
flask-graphql = "*"
graphene-sqlalchemy = "*"
sqlalchemy = "*"

[requires]
python_version = "3.7"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions