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.
1 parent 8872577 commit 48cc70fCopy full SHA for 48cc70f
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 return specified fields
49
+ exclude_fields = ("last_name",)
50
51
class Query(graphene.ObjectType):
52
users = graphene.List(User)
0 commit comments