ExtensionName#

This extension does …

Usage example:#

import strawberry
from strawberry.extensions import ExtensionName

schema = strawberry.Schema(
    Query,
    extensions=[
        ExtensionName(),
    ],
)

API reference:#

class ExtensionName(an_argument=None):
    ...

an_argument: Optional[str] = None#

Description of the argument.

More examples:#

Using `an_argument`
import strawberry
from strawberry.extensions import ValidationCache

schema = strawberry.Schema(
    Query,
    extensions=[
        ExtensionName(an_argument="something"),
    ],
)