Skip to content

Commit 56caa38

Browse files
authored
Merge branch 'master' into batch-sql
2 parents 7e50367 + 89c3726 commit 56caa38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ from graphene_sqlalchemy import SQLAlchemyObjectType
4343
class 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

5151
class Query(graphene.ObjectType):
5252
users = graphene.List(User)

0 commit comments

Comments
 (0)