Skip to content

Commit 48cc70f

Browse files
authored
add description on more properties in meta when subclassing
1 parent 8872577 commit 48cc70f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +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 return specified fields
49+
exclude_fields = ("last_name",)
4650

4751
class Query(graphene.ObjectType):
4852
users = graphene.List(User)

0 commit comments

Comments
 (0)