From 5bcdebff3772ae8c1147a299a3ce0fcf6a805c0c Mon Sep 17 00:00:00 2001 From: Milan Oberkirch | geOps Date: Mon, 11 Sep 2023 14:23:35 +0200 Subject: [PATCH] fix: Add default for new `OperationMessage` field --- strawberry_django/fields/types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/strawberry_django/fields/types.py b/strawberry_django/fields/types.py index eb73cbae..c58720e2 100644 --- a/strawberry_django/fields/types.py +++ b/strawberry_django/fields/types.py @@ -180,6 +180,7 @@ class Kind(enum.Enum): ) code: Optional[str] = strawberry.field( description="The error code, or `null` if no error code was set.", + default=None, ) def __eq__(self, other: Self):