From 803d937b0ce30f583c2ca1de496f8bb360b4c4ca Mon Sep 17 00:00:00 2001 From: Bartosz Nowotny Date: Thu, 21 Sep 2023 15:41:20 +0200 Subject: [PATCH] Expose disable_optimization argument on strawberry_django.interface decorator --- strawberry_django/type.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/strawberry_django/type.py b/strawberry_django/type.py index 2f0a93b0..5b1ec103 100644 --- a/strawberry_django/type.py +++ b/strawberry_django/type.py @@ -488,6 +488,7 @@ def interface( field_cls: Type[StrawberryDjangoField] = StrawberryDjangoField, description: Optional[str] = None, directives: Optional[Sequence[object]] = (), + disable_optimization: bool = False, ) -> Callable[[_T], _T]: """Annotates a class as a Django GraphQL interface. @@ -511,6 +512,7 @@ def wrapper(cls: _T) -> _T: is_interface=True, description=description, directives=directives, + disable_optimization=disable_optimization, ) return wrapper