strawberry.auto

Special marker for automatic annotation.

A special value that can be used to automatically infer the type of a field when using integrations like Strawberry Django or Strawberry Pydantic.

Example:

import strawberry
from my_user_app import models
@strawberry.django.type(models.User)
class User:
name: strawberry.auto