Skip to content

Commit 9f36e35

Browse files
ValueError: The options 'only_fields' and 'exclude_fields' cannot be both set on the same type.
Not sure what to choose I removed both as these do not help for the example imho. See https://github.com/graphql-python/graphene-sqlalchemy/blob/0544f812b37f8e6b49ed3363e7010c08a600be1d/graphene_sqlalchemy/types.py#L237
1 parent 0544f81 commit 9f36e35

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

README.md

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

5147
class Query(graphene.ObjectType):
5248
users = graphene.List(User)

0 commit comments

Comments
 (0)