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:
95
95
from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField
96
96
from models import db_session, Department as DepartmentModel, Employee as EmployeeModel
97
97
98
- schema = graphene.Schema()
99
-
100
98
101
99
class Department (SQLAlchemyObjectType ):
102
100
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
114
117
- schema.query = Query
115
+ schema = graphene.Schema( query = Query)
118
116
119
117
Creating GraphQL and GraphiQL views in Flask
120
118
--------------------------------------------
You can’t perform that action at this time.
0 commit comments