@@ -10,7 +10,7 @@ A [SQLAlchemy](http://www.sqlalchemy.org/) integration for [Graphene](http://gra
1010
1111## Installation
1212
13- For instaling graphene , just run this command in your shell
13+ For installing Graphene , just run this command in your shell.
1414
1515``` bash
1616pip install " graphene-sqlalchemy>=2.0"
@@ -34,7 +34,7 @@ class UserModel(Base):
3434 last_name = Column(String)
3535```
3636
37- To create a GraphQL schema for it you simply have to write the following:
37+ To create a GraphQL schema for it, you simply have to write the following:
3838
3939``` python
4040import graphene
@@ -43,10 +43,10 @@ from graphene_sqlalchemy import SQLAlchemyObjectType
4343class User (SQLAlchemyObjectType ):
4444 class Meta :
4545 model = UserModel
46- # only return specified fields
47- only_fields = (" name" ,)
48- # exclude specified fields
49- exclude_fields = (" last_name" ,)
46+ # use `only_fields` to only expose specific fields ie "name"
47+ # only_fields = ("name",)
48+ # use `exclude_fields` to exclude specific fields ie "last_name"
49+ # exclude_fields = ("last_name",)
5050
5151class Query (graphene .ObjectType ):
5252 users = graphene.List(User)
0 commit comments