From 48cc70fa7ea61bc1166ad218c350c7a6e3fd193f Mon Sep 17 00:00:00 2001 From: Pu Zhao Date: Tue, 21 Aug 2018 13:42:56 -0500 Subject: [PATCH 1/2] add description on more properties in meta when subclassing --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 9f517e02..98c3fa4d 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 return specified fields + exclude_fields = ("last_name",) class Query(graphene.ObjectType): users = graphene.List(User) From 774ce5a74714e0678c95c4bee0244de7af86f538 Mon Sep 17 00:00:00 2001 From: Pu Zhao Date: Tue, 21 Aug 2018 13:43:30 -0500 Subject: [PATCH 2/2] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 98c3fa4d..82d39296 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ class User(SQLAlchemyObjectType): model = UserModel # only return specified fields only_fields = ("name",) - # exclude return specified fields + # exclude specified fields exclude_fields = ("last_name",) class Query(graphene.ObjectType):