We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0544f81 commit 89c3726Copy full SHA for 89c3726
README.md
@@ -43,10 +43,10 @@ from graphene_sqlalchemy import SQLAlchemyObjectType
43
class User(SQLAlchemyObjectType):
44
class Meta:
45
model = UserModel
46
- # only return specified fields
47
- only_fields = ("name",)
48
- # exclude specified fields
49
- exclude_fields = ("last_name",)
+ # use `only_fields` to only expose specific fields ie "name"
+ # only_fields = ("name",)
+ # use `exclude_fields` to exclude specific fields ie "last_name"
+ # exclude_fields = ("last_name",)
50
51
class Query(graphene.ObjectType):
52
users = graphene.List(User)
0 commit comments