Merge pull request #382 from patrick91/patch-1

Improve ErrorType
This commit is contained in:
Syrus Akbary 2018-02-03 22:25:03 -08:00 committed by GitHub
commit c585982a1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,8 +3,8 @@ from graphene.types.unmountedtype import UnmountedType
class ErrorType(graphene.ObjectType):
field = graphene.String()
messages = graphene.List(graphene.String)
field = graphene.String(required=True)
messages = graphene.List(graphene.NonNull(graphene.String), required=True)
class DictType(UnmountedType):