diff --git a/README.md b/README.md index 9f517e02..82d39296 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,10 @@ from graphene_sqlalchemy import SQLAlchemyObjectType class User(SQLAlchemyObjectType): class Meta: model = UserModel + # only return specified fields + only_fields = ("name",) + # exclude specified fields + exclude_fields = ("last_name",) class Query(graphene.ObjectType): users = graphene.List(User)