Skip to content

Commit

Permalink
Expose disable_optimization argument on strawberry_django.interface d…
Browse files Browse the repository at this point in the history
…ecorator (#370)
  • Loading branch information
Mapiarz authored Sep 21, 2023
1 parent 063a90d commit 6be6e36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions strawberry_django/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -511,6 +512,7 @@ def wrapper(cls: _T) -> _T:
is_interface=True,
description=description,
directives=directives,
disable_optimization=disable_optimization,
)

return wrapper
Expand Down

0 comments on commit 6be6e36

Please # to comment.