Skip to content

Commit 89c3726

Browse files
clemens-tolboomjnak
authored andcommitted
ValueError: The options 'only_fields' and 'exclude_fields' cannot be … (#250)
1 parent 0544f81 commit 89c3726

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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)