File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,6 @@ Create ``flask_sqlalchemy/schema.py`` and type the following:
9595 from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField
9696 from models import db_session, Department as DepartmentModel, Employee as EmployeeModel
9797
98- schema = graphene.Schema()
99-
10098
10199 class Department (SQLAlchemyObjectType ):
102100 class Meta :
@@ -114,7 +112,7 @@ Create ``flask_sqlalchemy/schema.py`` and type the following:
114112 node = relay.Node.Field()
115113 all_employees = SQLAlchemyConnectionField(Employee)
116114
117- schema.query = Query
115+ schema = graphene.Schema( query = Query)
118116
119117 Creating GraphQL and GraphiQL views in Flask
120118--------------------------------------------
You can’t perform that action at this time.
0 commit comments