-
Notifications
You must be signed in to change notification settings - Fork 227
Bug "type object 'Employee' has no attribute 'sort_argument'" #216
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
Comments
Are you sure you have the version from the cloned repo installed when running the app, not an older version? |
I got the same here while following the steps from https://github.com/graphql-python/graphene-sqlalchemy/tree/master/examples/flask_sqlalchemy. I assumed the proper versions were defined in the |
That
That will install the currently checked out version. Graphene and SQLAlchemy will be automatically installed as dependencies with matching versions. Only Flask-GraphQL needs to be installed explicitly and needs to be added in Can you remove the virtualenv directory |
Good point. There you go #218 |
Yes, you are right. I need to use the old |
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. |
I just clone this repo and try flask example
but when I try to run it without have any changing code
I got an error like this
Traceback (most recent call last): File "./app.py", line 5, in <module> from schema import schema File "/home/examples/flask_sqlalchemy/schema.py", line 28, in <module> class Query(graphene.ObjectType): File "/home/examples/flask_sqlalchemy/schema.py", line 32, in Query Employee, sort=Employee.sort_argument()) AttributeError: type object 'Employee' has no attribute 'sort_argument'
What should I do?
Thank you!
The text was updated successfully, but these errors were encountered: