strawberry.lazy

Creates a lazy reference to a type in another module.

Returns:

A StrawberryLazyReference object that can be used to reference a type in another

Signature:

def lazy(module_path: str) -> StrawberryLazyReference:
...

Parameters:

  1. module_path:

    The path to the module containing the type, supports relative paths starting with .

    Type
    str