Skip to content

Commit

Permalink
Expose disable_optimization argument on
Browse files Browse the repository at this point in the history
strawberry_django.interface decorator
  • Loading branch information
Mapiarz committed Sep 21, 2023
1 parent 866dfb0 commit 803d937
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 803d937

Please # to comment.