strawberry-graphql 0.227.0.dev1713463204__tar.gz → 0.227.0.dev1713475585__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/PKG-INFO +1 -1
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/pyproject.toml +1 -1
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/__init__.py +1 -2
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/object_type.py +9 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/object_type.py +8 -54
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/execute.py +4 -1
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/LICENSE +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/README.md +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/__main__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/aiohttp/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/aiohttp/handlers/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/aiohttp/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/aiohttp/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/aiohttp/test/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/aiohttp/test/client.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/aiohttp/views.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/annotation.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/arguments.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/asgi/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/asgi/handlers/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/asgi/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/asgi/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/asgi/test/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/asgi/test/client.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/auto.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/chalice/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/chalice/views.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/channels/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/channels/handlers/base.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/channels/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/channels/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/channels/handlers/http_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/channels/handlers/ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/channels/router.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/channels/testing.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/app.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/commands/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/commands/codegen.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/commands/export_schema.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/commands/schema_codegen.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/commands/server.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/commands/upgrade/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/commands/upgrade/_fake_progress.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/commands/upgrade/_run_codemod.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/constants.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/debug_server.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/utils/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/cli/utils/load_schema.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/codegen/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/codegen/exceptions.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/codegen/plugins/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/codegen/plugins/print_operation.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/codegen/plugins/python.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/codegen/plugins/typescript.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/codegen/query_codegen.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/codegen/types.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/codemods/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/codemods/annotated_unions.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/custom_scalar.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/dataloader.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/directive.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/django/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/django/apps.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/django/context.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/django/test/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/django/test/client.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/django/views.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/enum.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/conflicting_arguments.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/duplicated_type_name.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/exception.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/exception_source.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/invalid_argument_type.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/invalid_union_type.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/missing_field_annotation.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/missing_return_annotation.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/not_a_strawberry_enum.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/object_is_not_a_class.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/permission_fail_silently_requires_optional.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/private_strawberry_field.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/scalar_already_registered.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/syntax.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/unresolved_field_type.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/utils/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/exceptions/utils/source_finder.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/experimental/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/experimental/pydantic/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/experimental/pydantic/_compat.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/experimental/pydantic/conversion.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/experimental/pydantic/conversion_types.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/experimental/pydantic/error_type.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/experimental/pydantic/exceptions.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/experimental/pydantic/fields.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/experimental/pydantic/object_type.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/experimental/pydantic/utils.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/ext/LICENSE +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/ext/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/ext/dataclasses/LICENSE +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/ext/dataclasses/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/ext/dataclasses/dataclasses.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/ext/mypy_plugin.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/add_validation_rules.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/base_extension.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/context.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/directives.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/disable_validation.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/field_extension.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/mask_errors.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/max_aliases.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/max_tokens.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/parser_cache.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/pyinstrument.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/query_depth_limiter.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/runner.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/tracing/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/tracing/apollo.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/tracing/datadog.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/tracing/opentelemetry.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/tracing/sentry.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/tracing/utils.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/utils.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/extensions/validation_cache.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/fastapi/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/fastapi/context.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/fastapi/handlers/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/fastapi/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/fastapi/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/fastapi/router.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/argument.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/enum.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/field.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/mutation.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/scalar.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/schema.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/schema_directive.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/schema_directives.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/types.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/federation/union.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/field.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/field_extensions/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/field_extensions/input_mutation.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/file_uploads/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/file_uploads/scalars.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/file_uploads/utils.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/flask/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/flask/views.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/http/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/http/async_base_view.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/http/base.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/http/exceptions.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/http/ides.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/http/sync_base_view.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/http/temporal_response.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/http/types.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/http/typevars.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/lazy_type.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/litestar/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/litestar/controller.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/litestar/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/litestar/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/mutation.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/parent.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/permission.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/printer/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/printer/ast_from_value.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/printer/printer.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/private.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/py.typed +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/quart/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/quart/views.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/relay/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/relay/exceptions.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/relay/fields.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/relay/types.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/relay/utils.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/resolvers.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/sanic/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/sanic/context.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/sanic/utils.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/sanic/views.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/scalars.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/base.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/compat.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/config.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/exceptions.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/name_converter.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/schema.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/schema_converter.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/types/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/types/base_scalars.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/types/concrete_type.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/types/scalar.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/validation_rules/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema/validation_rules/one_of.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema_codegen/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema_directive.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/schema_directives.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/starlite/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/starlite/controller.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/starlite/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/starlite/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/static/apollo-sandbox.html +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/static/graphiql.html +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/static/pathfinder.html +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/subscriptions/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/subscriptions/protocols/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/subscriptions/protocols/graphql_ws/types.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/test/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/test/client.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/tools/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/tools/create_type.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/tools/merge_types.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/type.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/types/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/types/execution.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/types/fields/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/types/fields/resolver.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/types/graphql.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/types/info.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/types/nodes.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/types/type_resolver.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/types/types.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/union.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/unset.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/__init__.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/aio.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/await_maybe.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/dataclasses.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/debug.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/deprecations.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/graphql_lexer.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/importer.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/inspect.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/logging.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/operation.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/str_converters.py +0 -0
- {strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/strawberry/utils/typing.py +0 -0
{strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/pyproject.toml
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "strawberry-graphql"
|
3
3
|
packages = [ { include = "strawberry" } ]
|
4
|
-
version = "0.227.0.dev.
|
4
|
+
version = "0.227.0.dev.1713475585"
|
5
5
|
description = "A library for creating GraphQL APIs"
|
6
6
|
authors = ["Patrick Arminio <patrick.arminio@gmail.com>"]
|
7
7
|
license = "MIT"
|
@@ -7,7 +7,7 @@ from .enum import enum, enum_value
|
|
7
7
|
from .field import field
|
8
8
|
from .lazy_type import LazyType, lazy
|
9
9
|
from .mutation import mutation, subscription
|
10
|
-
from .object_type import asdict, input, interface,
|
10
|
+
from .object_type import asdict, input, interface, type
|
11
11
|
from .parent import Parent
|
12
12
|
from .permission import BasePermission
|
13
13
|
from .private import Private
|
@@ -38,7 +38,6 @@ __all__ = [
|
|
38
38
|
"federation",
|
39
39
|
"field",
|
40
40
|
"input",
|
41
|
-
"one_of_input",
|
42
41
|
"interface",
|
43
42
|
"mutation",
|
44
43
|
"scalar",
|
@@ -31,6 +31,7 @@ def _impl_type(
|
|
31
31
|
*,
|
32
32
|
name: Optional[str] = None,
|
33
33
|
description: Optional[str] = None,
|
34
|
+
one_of: Optional[bool] = None,
|
34
35
|
directives: Iterable[object] = (),
|
35
36
|
authenticated: bool = False,
|
36
37
|
keys: Iterable[Union["Key", str]] = (),
|
@@ -54,6 +55,7 @@ def _impl_type(
|
|
54
55
|
Shareable,
|
55
56
|
Tag,
|
56
57
|
)
|
58
|
+
from strawberry.schema_directives import OneOf
|
57
59
|
|
58
60
|
directives = list(directives)
|
59
61
|
|
@@ -83,6 +85,9 @@ def _impl_type(
|
|
83
85
|
if is_interface_object:
|
84
86
|
directives.append(InterfaceObject())
|
85
87
|
|
88
|
+
if one_of:
|
89
|
+
directives.append(OneOf())
|
90
|
+
|
86
91
|
return base_type( # type: ignore
|
87
92
|
cls,
|
88
93
|
name=name,
|
@@ -182,6 +187,7 @@ def input(
|
|
182
187
|
cls: T,
|
183
188
|
*,
|
184
189
|
name: Optional[str] = None,
|
190
|
+
one_of: Optional[bool] = None,
|
185
191
|
description: Optional[str] = None,
|
186
192
|
directives: Sequence[object] = (),
|
187
193
|
inaccessible: bool = UNSET,
|
@@ -200,6 +206,7 @@ def input(
|
|
200
206
|
*,
|
201
207
|
name: Optional[str] = None,
|
202
208
|
description: Optional[str] = None,
|
209
|
+
one_of: Optional[bool] = None,
|
203
210
|
directives: Sequence[object] = (),
|
204
211
|
inaccessible: bool = UNSET,
|
205
212
|
tags: Iterable[str] = (),
|
@@ -211,6 +218,7 @@ def input(
|
|
211
218
|
cls: Optional[T] = None,
|
212
219
|
*,
|
213
220
|
name: Optional[str] = None,
|
221
|
+
one_of: Optional[bool] = None,
|
214
222
|
description: Optional[str] = None,
|
215
223
|
directives: Sequence[object] = (),
|
216
224
|
inaccessible: bool = UNSET,
|
@@ -223,6 +231,7 @@ def input(
|
|
223
231
|
directives=directives,
|
224
232
|
inaccessible=inaccessible,
|
225
233
|
is_input=True,
|
234
|
+
one_of=one_of,
|
226
235
|
tags=tags,
|
227
236
|
)
|
228
237
|
|
@@ -264,60 +264,6 @@ def type(
|
|
264
264
|
return wrap(cls)
|
265
265
|
|
266
266
|
|
267
|
-
@overload
|
268
|
-
@dataclass_transform(
|
269
|
-
order_default=True, kw_only_default=True, field_specifiers=(field, StrawberryField)
|
270
|
-
)
|
271
|
-
def one_of_input(
|
272
|
-
cls: T,
|
273
|
-
*,
|
274
|
-
name: Optional[str] = None,
|
275
|
-
description: Optional[str] = None,
|
276
|
-
directives: Optional[Sequence[object]] = (),
|
277
|
-
) -> T:
|
278
|
-
...
|
279
|
-
|
280
|
-
|
281
|
-
@overload
|
282
|
-
@dataclass_transform(
|
283
|
-
order_default=True, kw_only_default=True, field_specifiers=(field, StrawberryField)
|
284
|
-
)
|
285
|
-
def one_of_input(
|
286
|
-
*,
|
287
|
-
name: Optional[str] = None,
|
288
|
-
description: Optional[str] = None,
|
289
|
-
directives: Optional[Sequence[object]] = (),
|
290
|
-
) -> Callable[[T], T]:
|
291
|
-
...
|
292
|
-
|
293
|
-
|
294
|
-
def one_of_input(
|
295
|
-
cls: Optional[T] = None,
|
296
|
-
*,
|
297
|
-
name: Optional[str] = None,
|
298
|
-
description: Optional[str] = None,
|
299
|
-
directives: Optional[Sequence[object]] = (),
|
300
|
-
):
|
301
|
-
"""Annotates a class as a GraphQL Input type with the @oneOf directive.
|
302
|
-
Example usage:
|
303
|
-
>>> @strawberry.one_of_input
|
304
|
-
>>> class X:
|
305
|
-
>>> field_abc: str = "ABC"
|
306
|
-
"""
|
307
|
-
|
308
|
-
from strawberry.schema_directives import OneOf
|
309
|
-
|
310
|
-
directives = (*(directives or tuple()), OneOf())
|
311
|
-
|
312
|
-
return type( # type: ignore # not sure why mypy complains here
|
313
|
-
cls,
|
314
|
-
name=name,
|
315
|
-
description=description,
|
316
|
-
directives=directives,
|
317
|
-
is_input=True,
|
318
|
-
)
|
319
|
-
|
320
|
-
|
321
267
|
@overload
|
322
268
|
@dataclass_transform(
|
323
269
|
order_default=True, kw_only_default=True, field_specifiers=(field, StrawberryField)
|
@@ -326,6 +272,7 @@ def input(
|
|
326
272
|
cls: T,
|
327
273
|
*,
|
328
274
|
name: Optional[str] = None,
|
275
|
+
one_of: Optional[bool] = None,
|
329
276
|
description: Optional[str] = None,
|
330
277
|
directives: Optional[Sequence[object]] = (),
|
331
278
|
) -> T:
|
@@ -339,6 +286,7 @@ def input(
|
|
339
286
|
def input(
|
340
287
|
*,
|
341
288
|
name: Optional[str] = None,
|
289
|
+
one_of: Optional[bool] = None,
|
342
290
|
description: Optional[str] = None,
|
343
291
|
directives: Optional[Sequence[object]] = (),
|
344
292
|
) -> Callable[[T], T]:
|
@@ -349,6 +297,7 @@ def input(
|
|
349
297
|
cls: Optional[T] = None,
|
350
298
|
*,
|
351
299
|
name: Optional[str] = None,
|
300
|
+
one_of: Optional[bool] = None,
|
352
301
|
description: Optional[str] = None,
|
353
302
|
directives: Optional[Sequence[object]] = (),
|
354
303
|
):
|
@@ -359,6 +308,11 @@ def input(
|
|
359
308
|
>>> field_abc: str = "ABC"
|
360
309
|
"""
|
361
310
|
|
311
|
+
from strawberry.schema_directives import OneOf
|
312
|
+
|
313
|
+
if one_of:
|
314
|
+
directives = (*(directives or ()), OneOf())
|
315
|
+
|
362
316
|
return type( # type: ignore # not sure why mypy complains here
|
363
317
|
cls,
|
364
318
|
name=name,
|
@@ -56,7 +56,10 @@ def validate_document(
|
|
56
56
|
document: DocumentNode,
|
57
57
|
validation_rules: Tuple[Type[ASTValidationRule], ...],
|
58
58
|
) -> List[GraphQLError]:
|
59
|
-
validation_rules
|
59
|
+
validation_rules = (
|
60
|
+
*validation_rules,
|
61
|
+
OneOfInputValidationRule,
|
62
|
+
)
|
60
63
|
return validate(
|
61
64
|
schema,
|
62
65
|
document,
|
{strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/LICENSE
RENAMED
File without changes
|
{strawberry_graphql-0.227.0.dev1713463204 → strawberry_graphql-0.227.0.dev1713475585}/README.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|