Skip to content

Fix tutorial.rst code sample that raises exception #56

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

Merged
merged 1 commit into from
Jul 26, 2017

Conversation

btubbs
Copy link
Contributor

@btubbs btubbs commented Jul 7, 2017

If you try doing "schema = graphene.Schema()", as this tutorial did, you get "AssertionError: Schema query must be Object Type but got: None." Instead you have to pass the query in on init.

If you try doing "schema = graphene.Schema", as this tutorial did, you get "AssertionError: Schema query must be Object Type but got: None."  Instead you have to pass the query in on init.
@coveralls
Copy link

coveralls commented Jul 7, 2017

Coverage Status

Coverage remained the same at 91.129% when pulling f21ec85 on btubbs:btubbs-tutorial-fix into c1a0cae on graphql-python:master.

@syrusakbary syrusakbary merged commit 35792a8 into graphql-python:master Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants