We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8872577 + 774ce5a commit 17af4b1Copy full SHA for 17af4b1
README.md
@@ -43,6 +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",)
50
51
class Query(graphene.ObjectType):
52
users = graphene.List(User)
0 commit comments