strawberry-graphql 0.280.0__tar.gz → 0.282.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.
Potentially problematic release.
This version of strawberry-graphql might be problematic. Click here for more details.
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/PKG-INFO +1 -1
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/pyproject.toml +1 -1
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/aiohttp/views.py +0 -2
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/asgi/__init__.py +0 -2
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/channels/handlers/ws_handler.py +0 -2
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/server.py +1 -11
- strawberry_graphql-0.282.0/strawberry/cli/constants.py +1 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/debug_server.py +2 -6
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/mask_errors.py +5 -7
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/fastapi/router.py +0 -2
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/http/async_base_view.py +0 -3
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/litestar/controller.py +0 -3
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/quart/views.py +0 -2
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/relay/utils.py +9 -21
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -10
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +0 -6
- strawberry_graphql-0.280.0/strawberry/cli/constants.py +0 -2
- strawberry_graphql-0.280.0/strawberry/utils/debug.py +0 -46
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/LICENSE +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/README.md +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/__main__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/aiohttp/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/aiohttp/test/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/aiohttp/test/client.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/annotation.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/asgi/test/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/asgi/test/client.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/chalice/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/chalice/views.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/channels/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/channels/handlers/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/channels/handlers/base.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/channels/handlers/http_handler.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/channels/router.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/channels/testing.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/app.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/codegen.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/export_schema.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/locate_definition.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/schema_codegen.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/upgrade/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/upgrade/_fake_progress.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/upgrade/_run_codemod.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/utils/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/utils/load_schema.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/exceptions.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/plugins/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/plugins/print_operation.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/plugins/python.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/plugins/typescript.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/query_codegen.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/types.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codemods/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codemods/annotated_unions.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codemods/maybe_optional.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codemods/update_imports.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/dataloader.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/directive.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/django/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/django/apps.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/django/context.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/django/test/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/django/test/client.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/django/views.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/conflicting_arguments.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/duplicated_type_name.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/exception.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/exception_source.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/handler.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/invalid_argument_type.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/invalid_superclass_interface.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/invalid_union_type.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/missing_dependencies.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/missing_field_annotation.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/missing_return_annotation.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/object_is_not_a_class.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/permission_fail_silently_requires_optional.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/private_strawberry_field.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/scalar_already_registered.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/syntax.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/unresolved_field_type.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/utils/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/utils/source_finder.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/pydantic/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/pydantic/_compat.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/pydantic/conversion.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/pydantic/conversion_types.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/pydantic/error_type.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/pydantic/exceptions.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/pydantic/fields.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/pydantic/object_type.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/pydantic/utils.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/ext/LICENSE +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/ext/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/ext/dataclasses/LICENSE +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/ext/dataclasses/README.md +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/ext/dataclasses/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/ext/dataclasses/dataclasses.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/ext/mypy_plugin.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/add_validation_rules.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/base_extension.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/context.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/directives.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/disable_introspection.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/disable_validation.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/field_extension.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/max_aliases.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/max_tokens.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/parser_cache.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/pyinstrument.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/query_depth_limiter.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/runner.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/tracing/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/tracing/apollo.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/tracing/datadog.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/tracing/opentelemetry.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/tracing/utils.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/utils.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/validation_cache.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/fastapi/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/fastapi/context.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/argument.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/enum.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/field.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/mutation.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/object_type.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/scalar.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/schema.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/schema_directive.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/schema_directives.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/types.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/federation/union.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/field_extensions/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/field_extensions/input_mutation.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/file_uploads/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/file_uploads/scalars.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/file_uploads/utils.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/flask/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/flask/views.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/http/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/http/base.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/http/exceptions.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/http/ides.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/http/parse_content_type.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/http/sync_base_view.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/http/temporal_response.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/http/types.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/http/typevars.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/litestar/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/parent.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/permission.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/printer/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/printer/ast_from_value.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/printer/printer.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/py.typed +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/quart/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/relay/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/relay/exceptions.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/relay/fields.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/relay/types.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/resolvers.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/sanic/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/sanic/context.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/sanic/utils.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/sanic/views.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/scalars.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/_graphql_core.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/base.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/compat.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/config.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/exceptions.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/name_converter.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/schema.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/schema_converter.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/types/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/types/base_scalars.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/types/concrete_type.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/types/scalar.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/validation_rules/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/validation_rules/maybe_null.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema/validation_rules/one_of.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema_codegen/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema_directive.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/schema_directives.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/static/apollo-sandbox.html +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/static/graphiql.html +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/static/pathfinder.html +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/streamable.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/subscriptions/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/subscriptions/protocols/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/subscriptions/protocols/graphql_ws/types.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/test/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/test/client.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/tools/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/tools/create_type.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/tools/merge_types.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/arguments.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/auto.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/base.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/cast.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/enum.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/execution.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/field.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/fields/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/fields/resolver.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/graphql.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/info.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/lazy_type.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/maybe.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/mutation.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/nodes.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/object_type.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/private.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/scalar.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/type_resolver.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/union.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/types/unset.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/__init__.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/aio.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/await_maybe.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/dataclasses.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/deprecations.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/graphql_lexer.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/importer.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/inspect.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/locate_definition.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/logging.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/operation.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/str_converters.py +0 -0
- {strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/utils/typing.py +0 -0
|
@@ -97,7 +97,6 @@ class GraphQLView(
|
|
|
97
97
|
allow_queries_via_get: bool = True,
|
|
98
98
|
keep_alive: bool = True,
|
|
99
99
|
keep_alive_interval: float = 1,
|
|
100
|
-
debug: bool = False,
|
|
101
100
|
subscription_protocols: Sequence[str] = (
|
|
102
101
|
GRAPHQL_TRANSPORT_WS_PROTOCOL,
|
|
103
102
|
GRAPHQL_WS_PROTOCOL,
|
|
@@ -109,7 +108,6 @@ class GraphQLView(
|
|
|
109
108
|
self.allow_queries_via_get = allow_queries_via_get
|
|
110
109
|
self.keep_alive = keep_alive
|
|
111
110
|
self.keep_alive_interval = keep_alive_interval
|
|
112
|
-
self.debug = debug
|
|
113
111
|
self.subscription_protocols = subscription_protocols
|
|
114
112
|
self.connection_init_wait_timeout = connection_init_wait_timeout
|
|
115
113
|
self.multipart_uploads_enabled = multipart_uploads_enabled
|
|
@@ -103,7 +103,6 @@ class GraphQL(
|
|
|
103
103
|
allow_queries_via_get: bool = True,
|
|
104
104
|
keep_alive: bool = False,
|
|
105
105
|
keep_alive_interval: float = 1,
|
|
106
|
-
debug: bool = False,
|
|
107
106
|
subscription_protocols: Sequence[str] = (
|
|
108
107
|
GRAPHQL_TRANSPORT_WS_PROTOCOL,
|
|
109
108
|
GRAPHQL_WS_PROTOCOL,
|
|
@@ -115,7 +114,6 @@ class GraphQL(
|
|
|
115
114
|
self.allow_queries_via_get = allow_queries_via_get
|
|
116
115
|
self.keep_alive = keep_alive
|
|
117
116
|
self.keep_alive_interval = keep_alive_interval
|
|
118
|
-
self.debug = debug
|
|
119
117
|
self.protocols = subscription_protocols
|
|
120
118
|
self.connection_init_wait_timeout = connection_init_wait_timeout
|
|
121
119
|
self.multipart_uploads_enabled = multipart_uploads_enabled
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/channels/handlers/ws_handler.py
RENAMED
|
@@ -109,7 +109,6 @@ class GraphQLWSConsumer(
|
|
|
109
109
|
schema: BaseSchema,
|
|
110
110
|
keep_alive: bool = False,
|
|
111
111
|
keep_alive_interval: float = 1,
|
|
112
|
-
debug: bool = False,
|
|
113
112
|
subscription_protocols: Sequence[str] = (
|
|
114
113
|
GRAPHQL_TRANSPORT_WS_PROTOCOL,
|
|
115
114
|
GRAPHQL_WS_PROTOCOL,
|
|
@@ -122,7 +121,6 @@ class GraphQLWSConsumer(
|
|
|
122
121
|
self.schema = schema
|
|
123
122
|
self.keep_alive = keep_alive
|
|
124
123
|
self.keep_alive_interval = keep_alive_interval
|
|
125
|
-
self.debug = debug
|
|
126
124
|
self.protocols = subscription_protocols
|
|
127
125
|
self.message_queue: asyncio.Queue[MessageQueueData] = asyncio.Queue()
|
|
128
126
|
self.run_task: Optional[asyncio.Task] = None
|
|
@@ -6,10 +6,7 @@ import rich
|
|
|
6
6
|
import typer
|
|
7
7
|
|
|
8
8
|
from strawberry.cli.app import app
|
|
9
|
-
from strawberry.cli.constants import
|
|
10
|
-
DEBUG_SERVER_LOG_OPERATIONS,
|
|
11
|
-
DEBUG_SERVER_SCHEMA_ENV_VAR_KEY,
|
|
12
|
-
)
|
|
9
|
+
from strawberry.cli.constants import DEBUG_SERVER_SCHEMA_ENV_VAR_KEY
|
|
13
10
|
from strawberry.cli.utils import load_schema
|
|
14
11
|
|
|
15
12
|
|
|
@@ -42,12 +39,6 @@ def server(
|
|
|
42
39
|
"Works the same as `--app-dir` in uvicorn."
|
|
43
40
|
),
|
|
44
41
|
),
|
|
45
|
-
log_operations: bool = typer.Option(
|
|
46
|
-
True,
|
|
47
|
-
"--log-operations",
|
|
48
|
-
show_default=True,
|
|
49
|
-
help="Log GraphQL operations",
|
|
50
|
-
),
|
|
51
42
|
) -> None:
|
|
52
43
|
sys.path.insert(0, app_dir)
|
|
53
44
|
|
|
@@ -65,7 +56,6 @@ def server(
|
|
|
65
56
|
load_schema(schema, app_dir=app_dir)
|
|
66
57
|
|
|
67
58
|
os.environ[DEBUG_SERVER_SCHEMA_ENV_VAR_KEY] = schema
|
|
68
|
-
os.environ[DEBUG_SERVER_LOG_OPERATIONS] = str(log_operations)
|
|
69
59
|
app = "strawberry.cli.debug_server:app"
|
|
70
60
|
|
|
71
61
|
# Windows doesn't support UTF-8 by default
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DEBUG_SERVER_SCHEMA_ENV_VAR_KEY = "STRAWBERRY_DEBUG_SERVER_SCHEMA"
|
|
@@ -6,10 +6,7 @@ from starlette.middleware.cors import CORSMiddleware
|
|
|
6
6
|
|
|
7
7
|
from strawberry import Schema
|
|
8
8
|
from strawberry.asgi import GraphQL
|
|
9
|
-
from strawberry.cli.constants import
|
|
10
|
-
DEBUG_SERVER_LOG_OPERATIONS,
|
|
11
|
-
DEBUG_SERVER_SCHEMA_ENV_VAR_KEY,
|
|
12
|
-
)
|
|
9
|
+
from strawberry.cli.constants import DEBUG_SERVER_SCHEMA_ENV_VAR_KEY
|
|
13
10
|
from strawberry.utils.importer import import_module_symbol
|
|
14
11
|
|
|
15
12
|
app = Starlette(debug=True)
|
|
@@ -19,10 +16,9 @@ app.add_middleware(
|
|
|
19
16
|
|
|
20
17
|
schema_import_string = os.environ[DEBUG_SERVER_SCHEMA_ENV_VAR_KEY]
|
|
21
18
|
schema_symbol = import_module_symbol(schema_import_string, default_symbol_name="schema")
|
|
22
|
-
log_operations = os.environ[DEBUG_SERVER_LOG_OPERATIONS] == "True"
|
|
23
19
|
|
|
24
20
|
assert isinstance(schema_symbol, Schema)
|
|
25
|
-
graphql_app = GraphQL[Any, Any](schema_symbol
|
|
21
|
+
graphql_app = GraphQL[Any, Any](schema_symbol)
|
|
26
22
|
|
|
27
23
|
paths = ["/", "/graphql"]
|
|
28
24
|
for path in paths:
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/extensions/mask_errors.py
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
from collections.abc import Iterator
|
|
2
|
-
from typing import Any
|
|
1
|
+
from collections.abc import Callable, Iterator
|
|
2
|
+
from typing import Any
|
|
3
3
|
|
|
4
4
|
from graphql.error import GraphQLError
|
|
5
|
-
from graphql.execution import ExecutionResult
|
|
5
|
+
from graphql.execution.execute import ExecutionResult as GraphQLExecutionResult
|
|
6
6
|
|
|
7
7
|
from strawberry.extensions.base_extension import SchemaExtension
|
|
8
|
+
from strawberry.types.execution import ExecutionResult as StrawberryExecutionResult
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
def default_should_mask_error(_: GraphQLError) -> bool:
|
|
@@ -54,10 +55,7 @@ class MaskErrors(SchemaExtension):
|
|
|
54
55
|
|
|
55
56
|
result = self.execution_context.result
|
|
56
57
|
|
|
57
|
-
if isinstance(result,
|
|
58
|
+
if isinstance(result, (GraphQLExecutionResult, StrawberryExecutionResult)):
|
|
58
59
|
self._process_result(result)
|
|
59
60
|
elif result:
|
|
60
61
|
self._process_result(result.initial_result)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
__all__ = ["MaskErrors"]
|
|
@@ -127,7 +127,6 @@ class GraphQLRouter(
|
|
|
127
127
|
allow_queries_via_get: bool = True,
|
|
128
128
|
keep_alive: bool = False,
|
|
129
129
|
keep_alive_interval: float = 1,
|
|
130
|
-
debug: bool = False,
|
|
131
130
|
root_value_getter: Optional[Callable[[], RootValue]] = None,
|
|
132
131
|
context_getter: Optional[
|
|
133
132
|
Callable[..., Union[Optional[Context], Awaitable[Optional[Context]]]]
|
|
@@ -183,7 +182,6 @@ class GraphQLRouter(
|
|
|
183
182
|
self.allow_queries_via_get = allow_queries_via_get
|
|
184
183
|
self.keep_alive = keep_alive
|
|
185
184
|
self.keep_alive_interval = keep_alive_interval
|
|
186
|
-
self.debug = debug
|
|
187
185
|
self.root_value_getter = root_value_getter or self.__get_root_value
|
|
188
186
|
# TODO: clean this type up
|
|
189
187
|
self.context_getter = self.__get_context_getter(
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/http/async_base_view.py
RENAMED
|
@@ -88,7 +88,6 @@ class AsyncBaseHTTPView(
|
|
|
88
88
|
):
|
|
89
89
|
schema: BaseSchema
|
|
90
90
|
graphql_ide: Optional[GraphQL_IDE]
|
|
91
|
-
debug: bool
|
|
92
91
|
keep_alive = False
|
|
93
92
|
keep_alive_interval: Optional[float] = None
|
|
94
93
|
connection_init_wait_timeout: timedelta = timedelta(minutes=1)
|
|
@@ -325,7 +324,6 @@ class AsyncBaseHTTPView(
|
|
|
325
324
|
context=context,
|
|
326
325
|
root_value=root_value,
|
|
327
326
|
schema=self.schema,
|
|
328
|
-
debug=self.debug,
|
|
329
327
|
connection_init_wait_timeout=self.connection_init_wait_timeout,
|
|
330
328
|
).handle()
|
|
331
329
|
elif websocket_subprotocol == GRAPHQL_WS_PROTOCOL:
|
|
@@ -335,7 +333,6 @@ class AsyncBaseHTTPView(
|
|
|
335
333
|
context=context,
|
|
336
334
|
root_value=root_value,
|
|
337
335
|
schema=self.schema,
|
|
338
|
-
debug=self.debug,
|
|
339
336
|
keep_alive=self.keep_alive,
|
|
340
337
|
keep_alive_interval=self.keep_alive_interval,
|
|
341
338
|
).handle()
|
|
@@ -213,7 +213,6 @@ class GraphQLController(
|
|
|
213
213
|
allow_queries_via_get: bool = True
|
|
214
214
|
graphiql_allowed_accept: frozenset[str] = frozenset({"text/html", "*/*"})
|
|
215
215
|
graphql_ide: Optional[GraphQL_IDE] = "graphiql"
|
|
216
|
-
debug: bool = False
|
|
217
216
|
connection_init_wait_timeout: timedelta = timedelta(minutes=1)
|
|
218
217
|
protocols: Sequence[str] = (
|
|
219
218
|
GRAPHQL_TRANSPORT_WS_PROTOCOL,
|
|
@@ -370,7 +369,6 @@ def make_graphql_controller(
|
|
|
370
369
|
allow_queries_via_get: bool = True,
|
|
371
370
|
keep_alive: bool = False,
|
|
372
371
|
keep_alive_interval: float = 1,
|
|
373
|
-
debug: bool = False,
|
|
374
372
|
# TODO: root typevar
|
|
375
373
|
root_value_getter: Optional[AnyCallable] = None,
|
|
376
374
|
# TODO: context typevar
|
|
@@ -420,7 +418,6 @@ def make_graphql_controller(
|
|
|
420
418
|
|
|
421
419
|
_GraphQLController.keep_alive = keep_alive
|
|
422
420
|
_GraphQLController.keep_alive_interval = keep_alive_interval
|
|
423
|
-
_GraphQLController.debug = debug
|
|
424
421
|
_GraphQLController.protocols = subscription_protocols
|
|
425
422
|
_GraphQLController.connection_init_wait_timeout = connection_init_wait_timeout
|
|
426
423
|
_GraphQLController.graphiql_allowed_accept = frozenset({"text/html", "*/*"})
|
|
@@ -88,7 +88,6 @@ class GraphQLView(
|
|
|
88
88
|
allow_queries_via_get: bool = True,
|
|
89
89
|
keep_alive: bool = True,
|
|
90
90
|
keep_alive_interval: float = 1,
|
|
91
|
-
debug: bool = False,
|
|
92
91
|
subscription_protocols: Sequence[str] = (
|
|
93
92
|
GRAPHQL_TRANSPORT_WS_PROTOCOL,
|
|
94
93
|
GRAPHQL_WS_PROTOCOL,
|
|
@@ -100,7 +99,6 @@ class GraphQLView(
|
|
|
100
99
|
self.allow_queries_via_get = allow_queries_via_get
|
|
101
100
|
self.keep_alive = keep_alive
|
|
102
101
|
self.keep_alive_interval = keep_alive_interval
|
|
103
|
-
self.debug = debug
|
|
104
102
|
self.subscription_protocols = subscription_protocols
|
|
105
103
|
self.connection_init_wait_timeout = connection_init_wait_timeout
|
|
106
104
|
self.multipart_uploads_enabled = multipart_uploads_enabled
|
|
@@ -7,7 +7,7 @@ from typing import TYPE_CHECKING, Any, Union
|
|
|
7
7
|
from typing_extensions import Self, assert_never
|
|
8
8
|
|
|
9
9
|
from strawberry.types.base import StrawberryObjectDefinition
|
|
10
|
-
from strawberry.types.nodes import InlineFragment
|
|
10
|
+
from strawberry.types.nodes import InlineFragment
|
|
11
11
|
|
|
12
12
|
if TYPE_CHECKING:
|
|
13
13
|
from strawberry.types.info import Info
|
|
@@ -83,31 +83,19 @@ def should_resolve_list_connection_edges(info: Info) -> bool:
|
|
|
83
83
|
|
|
84
84
|
"""
|
|
85
85
|
resolve_for_field_names = {"edges", "pageInfo"}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
Returns:
|
|
94
|
-
bool: True if the user requested to resolve the `edges` field of a connection, False otherwise.
|
|
95
|
-
"""
|
|
86
|
+
# Recursively inspect the selection to check if the user requested to resolve the `edges` field.
|
|
87
|
+
stack = []
|
|
88
|
+
for selection_field in info.selected_fields:
|
|
89
|
+
stack.extend(selection_field.selections)
|
|
90
|
+
while stack:
|
|
91
|
+
selection = stack.pop()
|
|
96
92
|
if (
|
|
97
93
|
not isinstance(selection, InlineFragment)
|
|
98
94
|
and selection.name in resolve_for_field_names
|
|
99
95
|
):
|
|
100
96
|
return True
|
|
101
|
-
if selection
|
|
102
|
-
|
|
103
|
-
_check_selection(selection) for selection in selection.selections
|
|
104
|
-
)
|
|
105
|
-
return False
|
|
106
|
-
|
|
107
|
-
for selection_field in info.selected_fields:
|
|
108
|
-
for selection in selection_field.selections:
|
|
109
|
-
if _check_selection(selection):
|
|
110
|
-
return True
|
|
97
|
+
if nested_selections := getattr(selection, "selections", None):
|
|
98
|
+
stack.extend(nested_selections)
|
|
111
99
|
return False
|
|
112
100
|
|
|
113
101
|
|
|
@@ -34,7 +34,6 @@ from strawberry.types import ExecutionResult
|
|
|
34
34
|
from strawberry.types.execution import PreExecutionError
|
|
35
35
|
from strawberry.types.graphql import OperationType
|
|
36
36
|
from strawberry.types.unset import UnsetType
|
|
37
|
-
from strawberry.utils.debug import pretty_print_graphql_operation
|
|
38
37
|
from strawberry.utils.operation import get_operation_type
|
|
39
38
|
|
|
40
39
|
if TYPE_CHECKING:
|
|
@@ -55,7 +54,6 @@ class BaseGraphQLTransportWSHandler(Generic[Context, RootValue]):
|
|
|
55
54
|
context: Context,
|
|
56
55
|
root_value: Optional[RootValue],
|
|
57
56
|
schema: BaseSchema,
|
|
58
|
-
debug: bool,
|
|
59
57
|
connection_init_wait_timeout: timedelta,
|
|
60
58
|
) -> None:
|
|
61
59
|
self.view = view
|
|
@@ -63,7 +61,6 @@ class BaseGraphQLTransportWSHandler(Generic[Context, RootValue]):
|
|
|
63
61
|
self.context = context
|
|
64
62
|
self.root_value = root_value
|
|
65
63
|
self.schema = schema
|
|
66
|
-
self.debug = debug
|
|
67
64
|
self.connection_init_wait_timeout = connection_init_wait_timeout
|
|
68
65
|
self.connection_init_timeout_task: Optional[asyncio.Task] = None
|
|
69
66
|
self.connection_init_received = False
|
|
@@ -237,13 +234,6 @@ class BaseGraphQLTransportWSHandler(Generic[Context, RootValue]):
|
|
|
237
234
|
await self.websocket.close(code=4409, reason=reason)
|
|
238
235
|
return
|
|
239
236
|
|
|
240
|
-
if self.debug: # pragma: no cover
|
|
241
|
-
pretty_print_graphql_operation(
|
|
242
|
-
message["payload"].get("operationName"),
|
|
243
|
-
message["payload"]["query"],
|
|
244
|
-
message["payload"].get("variables"),
|
|
245
|
-
)
|
|
246
|
-
|
|
247
237
|
operation = Operation(
|
|
248
238
|
self,
|
|
249
239
|
message["id"],
|
|
@@ -27,7 +27,6 @@ from strawberry.subscriptions.protocols.graphql_ws.types import (
|
|
|
27
27
|
)
|
|
28
28
|
from strawberry.types.execution import ExecutionResult, PreExecutionError
|
|
29
29
|
from strawberry.types.unset import UnsetType
|
|
30
|
-
from strawberry.utils.debug import pretty_print_graphql_operation
|
|
31
30
|
|
|
32
31
|
if TYPE_CHECKING:
|
|
33
32
|
from collections.abc import AsyncGenerator
|
|
@@ -44,7 +43,6 @@ class BaseGraphQLWSHandler(Generic[Context, RootValue]):
|
|
|
44
43
|
context: Context,
|
|
45
44
|
root_value: Optional[RootValue],
|
|
46
45
|
schema: BaseSchema,
|
|
47
|
-
debug: bool,
|
|
48
46
|
keep_alive: bool,
|
|
49
47
|
keep_alive_interval: Optional[float],
|
|
50
48
|
) -> None:
|
|
@@ -53,7 +51,6 @@ class BaseGraphQLWSHandler(Generic[Context, RootValue]):
|
|
|
53
51
|
self.context = context
|
|
54
52
|
self.root_value = root_value
|
|
55
53
|
self.schema = schema
|
|
56
|
-
self.debug = debug
|
|
57
54
|
self.keep_alive = keep_alive
|
|
58
55
|
self.keep_alive_interval = keep_alive_interval
|
|
59
56
|
self.keep_alive_task: Optional[asyncio.Task] = None
|
|
@@ -139,9 +136,6 @@ class BaseGraphQLWSHandler(Generic[Context, RootValue]):
|
|
|
139
136
|
operation_name = payload.get("operationName")
|
|
140
137
|
variables = payload.get("variables")
|
|
141
138
|
|
|
142
|
-
if self.debug:
|
|
143
|
-
pretty_print_graphql_operation(operation_name, query, variables)
|
|
144
|
-
|
|
145
139
|
result_handler = self.handle_async_results(
|
|
146
140
|
operation_id, query, operation_name, variables
|
|
147
141
|
)
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import datetime
|
|
2
|
-
import json
|
|
3
|
-
from json import JSONEncoder
|
|
4
|
-
from typing import Any, Optional
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class StrawberryJSONEncoder(JSONEncoder):
|
|
8
|
-
def default(self, o: Any) -> Any:
|
|
9
|
-
return repr(o)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
def pretty_print_graphql_operation(
|
|
13
|
-
operation_name: Optional[str], query: str, variables: Optional[dict["str", Any]]
|
|
14
|
-
) -> None:
|
|
15
|
-
"""Pretty print a GraphQL operation using pygments.
|
|
16
|
-
|
|
17
|
-
Won't print introspection operation to prevent noise in the output.
|
|
18
|
-
"""
|
|
19
|
-
try:
|
|
20
|
-
from pygments import highlight, lexers
|
|
21
|
-
from pygments.formatters import Terminal256Formatter
|
|
22
|
-
except ImportError as e:
|
|
23
|
-
raise ImportError(
|
|
24
|
-
"pygments is not installed but is required for debug output, install it "
|
|
25
|
-
"directly or run `pip install strawberry-graphql[debug-server]`"
|
|
26
|
-
) from e
|
|
27
|
-
|
|
28
|
-
from .graphql_lexer import GraphQLLexer
|
|
29
|
-
|
|
30
|
-
if operation_name == "IntrospectionQuery":
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") # noqa: DTZ005
|
|
34
|
-
|
|
35
|
-
print(f"[{now}]: {operation_name or 'No operation name'}") # noqa: T201
|
|
36
|
-
print(highlight(query, GraphQLLexer(), Terminal256Formatter())) # noqa: T201
|
|
37
|
-
|
|
38
|
-
if variables:
|
|
39
|
-
variables_json = json.dumps(variables, indent=4, cls=StrawberryJSONEncoder)
|
|
40
|
-
|
|
41
|
-
print( # noqa: T201
|
|
42
|
-
highlight(variables_json, lexers.JsonLexer(), Terminal256Formatter())
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
__all__ = ["pretty_print_graphql_operation"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.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
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/channels/handlers/__init__.py
RENAMED
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/channels/handlers/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/__init__.py
RENAMED
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/codegen.py
RENAMED
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/export_schema.py
RENAMED
|
File without changes
|
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/commands/schema_codegen.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/cli/utils/load_schema.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/plugins/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/plugins/python.py
RENAMED
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/plugins/typescript.py
RENAMED
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codegen/query_codegen.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codemods/annotated_unions.py
RENAMED
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/codemods/maybe_optional.py
RENAMED
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.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.280.0 → strawberry_graphql-0.282.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.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/exception.py
RENAMED
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.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
|
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/exceptions/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/pydantic/fields.py
RENAMED
|
File without changes
|
|
File without changes
|
{strawberry_graphql-0.280.0 → strawberry_graphql-0.282.0}/strawberry/experimental/pydantic/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|