strawberry-graphql 0.247.2__tar.gz → 0.248.0__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.247.2 → strawberry_graphql-0.248.0}/PKG-INFO +1 -1
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/pyproject.toml +1 -1
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/channels/testing.py +28 -17
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +52 -51
- strawberry_graphql-0.248.0/strawberry/subscriptions/protocols/graphql_ws/types.py +96 -0
- strawberry_graphql-0.248.0/strawberry/types/fields/__init__.py +0 -0
- strawberry_graphql-0.247.2/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -24
- strawberry_graphql-0.247.2/strawberry/subscriptions/protocols/graphql_ws/types.py +0 -52
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/LICENSE +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/README.md +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/__main__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/aiohttp/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/aiohttp/test/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/aiohttp/test/client.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/aiohttp/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/annotation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/asgi/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/asgi/test/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/asgi/test/client.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/chalice/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/chalice/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/channels/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/channels/handlers/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/channels/handlers/base.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/channels/handlers/http_handler.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/channels/handlers/ws_handler.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/channels/router.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/app.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/codegen.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/export_schema.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/schema_codegen.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/server.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/upgrade/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/upgrade/_fake_progress.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/upgrade/_run_codemod.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/constants.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/debug_server.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/utils/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/utils/load_schema.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/exceptions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/plugins/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/plugins/print_operation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/plugins/python.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/plugins/typescript.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/query_codegen.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codemods/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codemods/annotated_unions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codemods/update_imports.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/dataloader.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/directive.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/django/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/django/apps.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/django/context.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/django/test/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/django/test/client.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/django/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/conflicting_arguments.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/duplicated_type_name.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/exception.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/exception_source.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/handler.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/invalid_argument_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/invalid_union_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/missing_dependencies.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/missing_field_annotation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/missing_return_annotation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/object_is_not_a_class.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/permission_fail_silently_requires_optional.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/private_strawberry_field.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/scalar_already_registered.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/syntax.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/unresolved_field_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/utils/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/utils/source_finder.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/experimental/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/experimental/pydantic/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/experimental/pydantic/_compat.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/experimental/pydantic/conversion.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/experimental/pydantic/conversion_types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/experimental/pydantic/error_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/experimental/pydantic/exceptions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/experimental/pydantic/fields.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/experimental/pydantic/object_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/experimental/pydantic/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/ext/LICENSE +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/ext/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/ext/dataclasses/LICENSE +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/ext/dataclasses/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/ext/dataclasses/dataclasses.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/ext/mypy_plugin.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/add_validation_rules.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/base_extension.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/context.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/directives.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/disable_validation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/field_extension.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/mask_errors.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/max_aliases.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/max_tokens.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/parser_cache.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/pyinstrument.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/query_depth_limiter.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/runner.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/tracing/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/tracing/apollo.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/tracing/datadog.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/tracing/opentelemetry.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/tracing/sentry.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/tracing/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/extensions/validation_cache.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/fastapi/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/fastapi/context.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/fastapi/router.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/argument.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/enum.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/field.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/mutation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/object_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/scalar.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/schema.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/schema_directive.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/schema_directives.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/federation/union.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/field_extensions/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/field_extensions/input_mutation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/file_uploads/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/file_uploads/scalars.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/file_uploads/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/flask/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/flask/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/http/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/http/async_base_view.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/http/base.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/http/exceptions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/http/ides.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/http/parse_content_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/http/sync_base_view.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/http/temporal_response.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/http/types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/http/typevars.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/litestar/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/litestar/controller.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/parent.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/permission.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/printer/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/printer/ast_from_value.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/printer/printer.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/py.typed +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/quart/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/quart/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/relay/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/relay/exceptions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/relay/fields.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/relay/types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/relay/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/resolvers.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/sanic/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/sanic/context.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/sanic/utils.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/sanic/views.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/scalars.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/base.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/compat.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/config.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/exceptions.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/execute.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/name_converter.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/schema.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/schema_converter.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/subscribe.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/types/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/types/base_scalars.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/types/concrete_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/types/scalar.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/validation_rules/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema/validation_rules/one_of.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema_codegen/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema_directive.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/schema_directives.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/static/apollo-sandbox.html +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/static/graphiql.html +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/static/pathfinder.html +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/subscriptions/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/subscriptions/protocols/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +0 -0
- {strawberry_graphql-0.247.2/strawberry/types/fields → strawberry_graphql-0.248.0/strawberry/subscriptions/protocols/graphql_ws}/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/test/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/test/client.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/tools/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/tools/create_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/tools/merge_types.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/arguments.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/auto.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/base.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/enum.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/execution.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/field.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/fields/resolver.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/graphql.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/info.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/lazy_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/mutation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/nodes.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/object_type.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/private.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/scalar.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/type_resolver.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/union.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/types/unset.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/__init__.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/aio.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/await_maybe.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/dataclasses.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/debug.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/deprecations.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/graphql_lexer.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/importer.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/inspect.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/logging.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/operation.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/str_converters.py +0 -0
- {strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/utils/typing.py +0 -0
@@ -1,6 +1,5 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
-
import dataclasses
|
4
3
|
import uuid
|
5
4
|
from typing import (
|
6
5
|
TYPE_CHECKING,
|
@@ -26,10 +25,14 @@ from strawberry.subscriptions.protocols.graphql_transport_ws.types import (
|
|
26
25
|
SubscribeMessage,
|
27
26
|
SubscribeMessagePayload,
|
28
27
|
)
|
29
|
-
from strawberry.subscriptions.protocols.graphql_ws import (
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
from strawberry.subscriptions.protocols.graphql_ws.types import (
|
29
|
+
ConnectionAckMessage as GraphQLWSConnectionAckMessage,
|
30
|
+
)
|
31
|
+
from strawberry.subscriptions.protocols.graphql_ws.types import (
|
32
|
+
ConnectionInitMessage as GraphQLWSConnectionInitMessage,
|
33
|
+
)
|
34
|
+
from strawberry.subscriptions.protocols.graphql_ws.types import (
|
35
|
+
StartMessage as GraphQLWSStartMessage,
|
33
36
|
)
|
34
37
|
from strawberry.types import ExecutionResult
|
35
38
|
|
@@ -112,9 +115,11 @@ class GraphQLWebsocketCommunicator(WebsocketCommunicator):
|
|
112
115
|
assert response == ConnectionAckMessage().as_dict()
|
113
116
|
else:
|
114
117
|
assert res == (True, GRAPHQL_WS_PROTOCOL)
|
115
|
-
await self.send_json_to(
|
116
|
-
|
117
|
-
|
118
|
+
await self.send_json_to(
|
119
|
+
GraphQLWSConnectionInitMessage({"type": "connection_init"})
|
120
|
+
)
|
121
|
+
response: GraphQLWSConnectionAckMessage = await self.receive_json_from()
|
122
|
+
assert response["type"] == "connection_ack"
|
118
123
|
|
119
124
|
# Actual `ExecutionResult`` objects are not available client-side, since they
|
120
125
|
# get transformed into `FormattedExecutionResult` on the wire, but we attempt
|
@@ -123,22 +128,28 @@ class GraphQLWebsocketCommunicator(WebsocketCommunicator):
|
|
123
128
|
self, query: str, variables: Optional[Dict] = None
|
124
129
|
) -> Union[ExecutionResult, AsyncIterator[ExecutionResult]]:
|
125
130
|
id_ = uuid.uuid4().hex
|
126
|
-
|
131
|
+
|
127
132
|
if self.protocol == GRAPHQL_TRANSPORT_WS_PROTOCOL:
|
128
133
|
await self.send_json_to(
|
129
134
|
SubscribeMessage(
|
130
135
|
id=id_,
|
131
|
-
payload=
|
136
|
+
payload=SubscribeMessagePayload(query=query, variables=variables),
|
132
137
|
).as_dict()
|
133
138
|
)
|
134
139
|
else:
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
"
|
140
|
-
}
|
141
|
-
|
140
|
+
start_message: GraphQLWSStartMessage = {
|
141
|
+
"type": "start",
|
142
|
+
"id": id_,
|
143
|
+
"payload": {
|
144
|
+
"query": query,
|
145
|
+
},
|
146
|
+
}
|
147
|
+
|
148
|
+
if variables is not None:
|
149
|
+
start_message["payload"]["variables"] = variables
|
150
|
+
|
151
|
+
await self.send_json_to(start_message)
|
152
|
+
|
142
153
|
while True:
|
143
154
|
response = await self.receive_json_from(timeout=5)
|
144
155
|
message_type = response["type"]
|
@@ -11,24 +11,18 @@ from typing import (
|
|
11
11
|
)
|
12
12
|
|
13
13
|
from strawberry.http.exceptions import NonTextMessageReceived, WebSocketDisconnected
|
14
|
-
from strawberry.subscriptions.protocols.graphql_ws import (
|
15
|
-
GQL_COMPLETE,
|
16
|
-
GQL_CONNECTION_ACK,
|
17
|
-
GQL_CONNECTION_ERROR,
|
18
|
-
GQL_CONNECTION_INIT,
|
19
|
-
GQL_CONNECTION_KEEP_ALIVE,
|
20
|
-
GQL_CONNECTION_TERMINATE,
|
21
|
-
GQL_DATA,
|
22
|
-
GQL_ERROR,
|
23
|
-
GQL_START,
|
24
|
-
GQL_STOP,
|
25
|
-
)
|
26
14
|
from strawberry.subscriptions.protocols.graphql_ws.types import (
|
27
|
-
|
28
|
-
|
15
|
+
CompleteMessage,
|
16
|
+
ConnectionAckMessage,
|
17
|
+
ConnectionErrorMessage,
|
18
|
+
ConnectionInitMessage,
|
19
|
+
ConnectionKeepAliveMessage,
|
20
|
+
ConnectionTerminateMessage,
|
21
|
+
DataMessage,
|
22
|
+
ErrorMessage,
|
29
23
|
OperationMessage,
|
30
|
-
|
31
|
-
|
24
|
+
StartMessage,
|
25
|
+
StopMessage,
|
32
26
|
)
|
33
27
|
from strawberry.types.execution import ExecutionResult, PreExecutionError
|
34
28
|
from strawberry.utils.debug import pretty_print_graphql_operation
|
@@ -59,7 +53,7 @@ class BaseGraphQLWSHandler:
|
|
59
53
|
self.keep_alive_task: Optional[asyncio.Task] = None
|
60
54
|
self.subscriptions: Dict[str, AsyncGenerator] = {}
|
61
55
|
self.tasks: Dict[str, asyncio.Task] = {}
|
62
|
-
self.connection_params: Optional[
|
56
|
+
self.connection_params: Optional[Dict[str, object]] = None
|
63
57
|
|
64
58
|
async def handle(self) -> None:
|
65
59
|
try:
|
@@ -87,41 +81,40 @@ class BaseGraphQLWSHandler:
|
|
87
81
|
self,
|
88
82
|
message: OperationMessage,
|
89
83
|
) -> None:
|
90
|
-
|
91
|
-
|
92
|
-
if message_type == GQL_CONNECTION_INIT:
|
84
|
+
if message["type"] == "connection_init":
|
93
85
|
await self.handle_connection_init(message)
|
94
|
-
elif
|
86
|
+
elif message["type"] == "connection_terminate":
|
95
87
|
await self.handle_connection_terminate(message)
|
96
|
-
elif
|
88
|
+
elif message["type"] == "start":
|
97
89
|
await self.handle_start(message)
|
98
|
-
elif
|
90
|
+
elif message["type"] == "stop":
|
99
91
|
await self.handle_stop(message)
|
100
92
|
|
101
|
-
async def handle_connection_init(self, message:
|
93
|
+
async def handle_connection_init(self, message: ConnectionInitMessage) -> None:
|
102
94
|
payload = message.get("payload")
|
103
95
|
if payload is not None and not isinstance(payload, dict):
|
104
|
-
error_message:
|
96
|
+
error_message: ConnectionErrorMessage = {"type": "connection_error"}
|
105
97
|
await self.websocket.send_json(error_message)
|
106
98
|
await self.websocket.close(code=1000, reason="")
|
107
99
|
return
|
108
100
|
|
109
|
-
payload = cast(Optional["ConnectionInitPayload"], payload)
|
110
101
|
self.connection_params = payload
|
111
102
|
|
112
|
-
|
113
|
-
await self.websocket.send_json(
|
103
|
+
connection_ack_message: ConnectionAckMessage = {"type": "connection_ack"}
|
104
|
+
await self.websocket.send_json(connection_ack_message)
|
114
105
|
|
115
106
|
if self.keep_alive:
|
116
107
|
keep_alive_handler = self.handle_keep_alive()
|
117
108
|
self.keep_alive_task = asyncio.create_task(keep_alive_handler)
|
118
109
|
|
119
|
-
async def handle_connection_terminate(
|
110
|
+
async def handle_connection_terminate(
|
111
|
+
self, message: ConnectionTerminateMessage
|
112
|
+
) -> None:
|
120
113
|
await self.websocket.close(code=1000, reason="")
|
121
114
|
|
122
|
-
async def handle_start(self, message:
|
115
|
+
async def handle_start(self, message: StartMessage) -> None:
|
123
116
|
operation_id = message["id"]
|
124
|
-
payload =
|
117
|
+
payload = message["payload"]
|
125
118
|
query = payload["query"]
|
126
119
|
operation_name = payload.get("operationName")
|
127
120
|
variables = payload.get("variables")
|
@@ -139,14 +132,14 @@ class BaseGraphQLWSHandler:
|
|
139
132
|
)
|
140
133
|
self.tasks[operation_id] = asyncio.create_task(result_handler)
|
141
134
|
|
142
|
-
async def handle_stop(self, message:
|
135
|
+
async def handle_stop(self, message: StopMessage) -> None:
|
143
136
|
operation_id = message["id"]
|
144
137
|
await self.cleanup_operation(operation_id)
|
145
138
|
|
146
139
|
async def handle_keep_alive(self) -> None:
|
147
140
|
assert self.keep_alive_interval
|
148
141
|
while True:
|
149
|
-
data:
|
142
|
+
data: ConnectionKeepAliveMessage = {"type": "ka"}
|
150
143
|
await self.websocket.send_json(data)
|
151
144
|
await asyncio.sleep(self.keep_alive_interval)
|
152
145
|
|
@@ -168,14 +161,24 @@ class BaseGraphQLWSHandler:
|
|
168
161
|
if isinstance(agen_or_err, PreExecutionError):
|
169
162
|
assert agen_or_err.errors
|
170
163
|
error_payload = agen_or_err.errors[0].formatted
|
171
|
-
|
164
|
+
error_message: ErrorMessage = {
|
165
|
+
"type": "error",
|
166
|
+
"id": operation_id,
|
167
|
+
"payload": error_payload,
|
168
|
+
}
|
169
|
+
await self.websocket.send_json(error_message)
|
172
170
|
else:
|
173
171
|
self.subscriptions[operation_id] = agen_or_err
|
174
172
|
async for result in agen_or_err:
|
175
173
|
await self.send_data(result, operation_id)
|
176
|
-
|
174
|
+
complete_message: CompleteMessage = {
|
175
|
+
"type": "complete",
|
176
|
+
"id": operation_id,
|
177
|
+
}
|
178
|
+
await self.websocket.send_json(complete_message)
|
177
179
|
except asyncio.CancelledError:
|
178
|
-
|
180
|
+
complete_message: CompleteMessage = {"type": "complete", "id": operation_id}
|
181
|
+
await self.websocket.send_json(complete_message)
|
179
182
|
|
180
183
|
async def cleanup_operation(self, operation_id: str) -> None:
|
181
184
|
if operation_id in self.subscriptions:
|
@@ -188,26 +191,24 @@ class BaseGraphQLWSHandler:
|
|
188
191
|
await self.tasks[operation_id]
|
189
192
|
del self.tasks[operation_id]
|
190
193
|
|
191
|
-
async def send_message(
|
192
|
-
self,
|
193
|
-
type_: str,
|
194
|
-
operation_id: str,
|
195
|
-
payload: Optional[OperationMessagePayload] = None,
|
196
|
-
) -> None:
|
197
|
-
data: OperationMessage = {"type": type_, "id": operation_id}
|
198
|
-
if payload is not None:
|
199
|
-
data["payload"] = payload
|
200
|
-
await self.websocket.send_json(data)
|
201
|
-
|
202
194
|
async def send_data(
|
203
195
|
self, execution_result: ExecutionResult, operation_id: str
|
204
196
|
) -> None:
|
205
|
-
|
197
|
+
data_message: DataMessage = {
|
198
|
+
"type": "data",
|
199
|
+
"id": operation_id,
|
200
|
+
"payload": {"data": execution_result.data},
|
201
|
+
}
|
202
|
+
|
206
203
|
if execution_result.errors:
|
207
|
-
payload["errors"] = [
|
204
|
+
data_message["payload"]["errors"] = [
|
205
|
+
err.formatted for err in execution_result.errors
|
206
|
+
]
|
207
|
+
|
208
208
|
if execution_result.extensions:
|
209
|
-
payload["extensions"] = execution_result.extensions
|
210
|
-
|
209
|
+
data_message["payload"]["extensions"] = execution_result.extensions
|
210
|
+
|
211
|
+
await self.websocket.send_json(data_message)
|
211
212
|
|
212
213
|
|
213
214
|
__all__ = ["BaseGraphQLWSHandler"]
|
@@ -0,0 +1,96 @@
|
|
1
|
+
from typing import Dict, List, TypedDict, Union
|
2
|
+
from typing_extensions import Literal, NotRequired
|
3
|
+
|
4
|
+
from graphql import GraphQLFormattedError
|
5
|
+
|
6
|
+
|
7
|
+
class ConnectionInitMessage(TypedDict):
|
8
|
+
type: Literal["connection_init"]
|
9
|
+
payload: NotRequired[Dict[str, object]]
|
10
|
+
|
11
|
+
|
12
|
+
class StartMessagePayload(TypedDict):
|
13
|
+
query: str
|
14
|
+
variables: NotRequired[Dict[str, object]]
|
15
|
+
operationName: NotRequired[str]
|
16
|
+
|
17
|
+
|
18
|
+
class StartMessage(TypedDict):
|
19
|
+
type: Literal["start"]
|
20
|
+
id: str
|
21
|
+
payload: StartMessagePayload
|
22
|
+
|
23
|
+
|
24
|
+
class StopMessage(TypedDict):
|
25
|
+
type: Literal["stop"]
|
26
|
+
id: str
|
27
|
+
|
28
|
+
|
29
|
+
class ConnectionTerminateMessage(TypedDict):
|
30
|
+
type: Literal["connection_terminate"]
|
31
|
+
|
32
|
+
|
33
|
+
class ConnectionErrorMessage(TypedDict):
|
34
|
+
type: Literal["connection_error"]
|
35
|
+
payload: NotRequired[Dict[str, object]]
|
36
|
+
|
37
|
+
|
38
|
+
class ConnectionAckMessage(TypedDict):
|
39
|
+
type: Literal["connection_ack"]
|
40
|
+
|
41
|
+
|
42
|
+
class DataMessagePayload(TypedDict):
|
43
|
+
data: object
|
44
|
+
errors: NotRequired[List[GraphQLFormattedError]]
|
45
|
+
|
46
|
+
# Non-standard field:
|
47
|
+
extensions: NotRequired[Dict[str, object]]
|
48
|
+
|
49
|
+
|
50
|
+
class DataMessage(TypedDict):
|
51
|
+
type: Literal["data"]
|
52
|
+
id: str
|
53
|
+
payload: DataMessagePayload
|
54
|
+
|
55
|
+
|
56
|
+
class ErrorMessage(TypedDict):
|
57
|
+
type: Literal["error"]
|
58
|
+
id: str
|
59
|
+
payload: GraphQLFormattedError
|
60
|
+
|
61
|
+
|
62
|
+
class CompleteMessage(TypedDict):
|
63
|
+
type: Literal["complete"]
|
64
|
+
id: str
|
65
|
+
|
66
|
+
|
67
|
+
class ConnectionKeepAliveMessage(TypedDict):
|
68
|
+
type: Literal["ka"]
|
69
|
+
|
70
|
+
|
71
|
+
OperationMessage = Union[
|
72
|
+
ConnectionInitMessage,
|
73
|
+
StartMessage,
|
74
|
+
StopMessage,
|
75
|
+
ConnectionTerminateMessage,
|
76
|
+
ConnectionErrorMessage,
|
77
|
+
ConnectionAckMessage,
|
78
|
+
DataMessage,
|
79
|
+
ErrorMessage,
|
80
|
+
CompleteMessage,
|
81
|
+
]
|
82
|
+
|
83
|
+
|
84
|
+
__all__ = [
|
85
|
+
"ConnectionInitMessage",
|
86
|
+
"StartMessage",
|
87
|
+
"StopMessage",
|
88
|
+
"ConnectionTerminateMessage",
|
89
|
+
"ConnectionErrorMessage",
|
90
|
+
"ConnectionAckMessage",
|
91
|
+
"DataMessage",
|
92
|
+
"ErrorMessage",
|
93
|
+
"CompleteMessage",
|
94
|
+
"ConnectionKeepAliveMessage",
|
95
|
+
"OperationMessage",
|
96
|
+
]
|
File without changes
|
@@ -1,24 +0,0 @@
|
|
1
|
-
GQL_CONNECTION_INIT = "connection_init"
|
2
|
-
GQL_CONNECTION_ACK = "connection_ack"
|
3
|
-
GQL_CONNECTION_ERROR = "connection_error"
|
4
|
-
GQL_CONNECTION_TERMINATE = "connection_terminate"
|
5
|
-
GQL_CONNECTION_KEEP_ALIVE = "ka"
|
6
|
-
GQL_START = "start"
|
7
|
-
GQL_DATA = "data"
|
8
|
-
GQL_ERROR = "error"
|
9
|
-
GQL_COMPLETE = "complete"
|
10
|
-
GQL_STOP = "stop"
|
11
|
-
|
12
|
-
|
13
|
-
__all__ = [
|
14
|
-
"GQL_CONNECTION_INIT",
|
15
|
-
"GQL_CONNECTION_ACK",
|
16
|
-
"GQL_CONNECTION_ERROR",
|
17
|
-
"GQL_CONNECTION_TERMINATE",
|
18
|
-
"GQL_CONNECTION_KEEP_ALIVE",
|
19
|
-
"GQL_START",
|
20
|
-
"GQL_DATA",
|
21
|
-
"GQL_ERROR",
|
22
|
-
"GQL_COMPLETE",
|
23
|
-
"GQL_STOP",
|
24
|
-
]
|
@@ -1,52 +0,0 @@
|
|
1
|
-
from typing import Any, Dict, List, Optional, Union
|
2
|
-
from typing_extensions import TypedDict
|
3
|
-
|
4
|
-
from graphql import GraphQLFormattedError
|
5
|
-
|
6
|
-
ConnectionInitPayload = Dict[str, Any]
|
7
|
-
|
8
|
-
|
9
|
-
ConnectionErrorPayload = Dict[str, Any]
|
10
|
-
|
11
|
-
|
12
|
-
class StartPayload(TypedDict, total=False):
|
13
|
-
query: str
|
14
|
-
variables: Optional[Dict[str, Any]]
|
15
|
-
operationName: Optional[str]
|
16
|
-
|
17
|
-
|
18
|
-
class DataPayload(TypedDict, total=False):
|
19
|
-
data: Any
|
20
|
-
|
21
|
-
# Optional list of formatted graphql.GraphQLError objects
|
22
|
-
errors: Optional[List[GraphQLFormattedError]]
|
23
|
-
extensions: Optional[Dict[str, Any]]
|
24
|
-
|
25
|
-
|
26
|
-
ErrorPayload = GraphQLFormattedError
|
27
|
-
|
28
|
-
|
29
|
-
OperationMessagePayload = Union[
|
30
|
-
ConnectionInitPayload,
|
31
|
-
ConnectionErrorPayload,
|
32
|
-
StartPayload,
|
33
|
-
DataPayload,
|
34
|
-
ErrorPayload,
|
35
|
-
]
|
36
|
-
|
37
|
-
|
38
|
-
class OperationMessage(TypedDict, total=False):
|
39
|
-
type: str
|
40
|
-
id: str
|
41
|
-
payload: OperationMessagePayload
|
42
|
-
|
43
|
-
|
44
|
-
__all__ = [
|
45
|
-
"ConnectionInitPayload",
|
46
|
-
"ConnectionErrorPayload",
|
47
|
-
"StartPayload",
|
48
|
-
"DataPayload",
|
49
|
-
"ErrorPayload",
|
50
|
-
"OperationMessagePayload",
|
51
|
-
"OperationMessage",
|
52
|
-
]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/aiohttp/test/__init__.py
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
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/channels/handlers/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/channels/handlers/base.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/channels/handlers/ws_handler.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/codegen.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/export_schema.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/commands/schema_codegen.py
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
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/cli/utils/load_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/plugins/__init__.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/plugins/python.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/plugins/typescript.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codegen/query_codegen.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codemods/annotated_unions.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/codemods/update_imports.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/django/test/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/exception.py
RENAMED
File without changes
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/exception_source.py
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
|
{strawberry_graphql-0.247.2 → strawberry_graphql-0.248.0}/strawberry/exceptions/utils/__init__.py
RENAMED
File without changes
|