Component evidence
GraphQL mutation decorator with overloads for sync/async resolvers, supporting permissions.
# Source: https://github.com/strawberry-graphql/strawberry | License: MIT | Copyright 2018 Patrick Arminio
# Provided via justclaw.it.com; keep this notice with the code.
from __future__ import annotations
import dataclasses
from typing import (
TYPE_CHECKING,
Any,
Literal,
overload,
)
from strawberry.types.field import (
_RESOLVER_TYPE,
_RESOLVER_TYPE_ASYNC,
_RESOLVER_TYPE_SYNC,
StrawberryField,
T,
field,
)
if TYPE_CHECKING:
from collections.abc import Callable, Mapping, Sequence
from typing import Literal
from strawberry.extensions.field_extension import FieldExtension
from strawberry.permission import BasePermission
# NOTE: we are separating the sync and async resolvers because using both
# in the same function will cause mypy
... (truncated -- full source via MCP)