We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1a0cae + f21ec85 commit 35792a8Copy full SHA for 35792a8
1 file changed
docs/tutorial.rst
@@ -95,8 +95,6 @@ Create ``flask_sqlalchemy/schema.py`` and type the following:
95
from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField
96
from models import db_session, Department as DepartmentModel, Employee as EmployeeModel
97
98
- schema = graphene.Schema()
99
-
100
101
class Department(SQLAlchemyObjectType):
102
class Meta:
@@ -114,7 +112,7 @@ Create ``flask_sqlalchemy/schema.py`` and type the following:
114
112
node = relay.Node.Field()
115
113
all_employees = SQLAlchemyConnectionField(Employee)
116
117
- schema.query = Query
+ schema = graphene.Schema(query=Query)
118
119
Creating GraphQL and GraphiQL views in Flask
120
--------------------------------------------
0 commit comments