strawberry-graphql 0.263.0.dev1743450741__tar.gz → 0.263.1__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.
Files changed (235) hide show
  1. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/PKG-INFO +1 -1
  2. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/pyproject.toml +1 -1
  3. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/channels/handlers/http_handler.py +4 -2
  4. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/experimental/pydantic/_compat.py +34 -4
  5. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/experimental/pydantic/object_type.py +6 -2
  6. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/experimental/pydantic/utils.py +8 -2
  7. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/tracing/opentelemetry.py +2 -1
  8. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/http/__init__.py +4 -9
  9. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/http/async_base_view.py +5 -79
  10. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/printer/printer.py +2 -2
  11. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/config.py +0 -1
  12. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/schema.py +7 -42
  13. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/static/graphiql.html +5 -5
  14. strawberry_graphql-0.263.0.dev1743450741/strawberry/schema/_graphql_core.py +0 -46
  15. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/LICENSE +0 -0
  16. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/README.md +0 -0
  17. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/__init__.py +0 -0
  18. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/__main__.py +0 -0
  19. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/aiohttp/__init__.py +0 -0
  20. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/aiohttp/test/__init__.py +0 -0
  21. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/aiohttp/test/client.py +0 -0
  22. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/aiohttp/views.py +0 -0
  23. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/annotation.py +0 -0
  24. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/asgi/__init__.py +0 -0
  25. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/asgi/test/__init__.py +0 -0
  26. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/asgi/test/client.py +0 -0
  27. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/chalice/__init__.py +0 -0
  28. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/chalice/views.py +0 -0
  29. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/channels/__init__.py +0 -0
  30. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/channels/handlers/__init__.py +0 -0
  31. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/channels/handlers/base.py +0 -0
  32. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/channels/handlers/ws_handler.py +0 -0
  33. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/channels/router.py +0 -0
  34. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/channels/testing.py +0 -0
  35. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/__init__.py +0 -0
  36. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/app.py +0 -0
  37. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/commands/__init__.py +0 -0
  38. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/commands/codegen.py +0 -0
  39. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/commands/export_schema.py +0 -0
  40. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/commands/schema_codegen.py +0 -0
  41. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/commands/server.py +0 -0
  42. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/commands/upgrade/__init__.py +0 -0
  43. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/commands/upgrade/_fake_progress.py +0 -0
  44. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/commands/upgrade/_run_codemod.py +0 -0
  45. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/constants.py +0 -0
  46. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/debug_server.py +0 -0
  47. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/utils/__init__.py +0 -0
  48. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/cli/utils/load_schema.py +0 -0
  49. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/codegen/__init__.py +0 -0
  50. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/codegen/exceptions.py +0 -0
  51. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/codegen/plugins/__init__.py +0 -0
  52. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/codegen/plugins/print_operation.py +0 -0
  53. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/codegen/plugins/python.py +0 -0
  54. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/codegen/plugins/typescript.py +0 -0
  55. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/codegen/query_codegen.py +0 -0
  56. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/codegen/types.py +0 -0
  57. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/codemods/__init__.py +0 -0
  58. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/codemods/annotated_unions.py +0 -0
  59. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/codemods/update_imports.py +0 -0
  60. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/dataloader.py +0 -0
  61. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/directive.py +0 -0
  62. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/django/__init__.py +0 -0
  63. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/django/apps.py +0 -0
  64. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/django/context.py +0 -0
  65. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/django/test/__init__.py +0 -0
  66. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/django/test/client.py +0 -0
  67. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/django/views.py +0 -0
  68. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/__init__.py +0 -0
  69. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/conflicting_arguments.py +0 -0
  70. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/duplicated_type_name.py +0 -0
  71. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/exception.py +0 -0
  72. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/exception_source.py +0 -0
  73. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/handler.py +0 -0
  74. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/invalid_argument_type.py +0 -0
  75. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/invalid_union_type.py +0 -0
  76. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
  77. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/missing_dependencies.py +0 -0
  78. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/missing_field_annotation.py +0 -0
  79. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/missing_return_annotation.py +0 -0
  80. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/object_is_not_a_class.py +0 -0
  81. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
  82. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/permission_fail_silently_requires_optional.py +0 -0
  83. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/private_strawberry_field.py +0 -0
  84. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/scalar_already_registered.py +0 -0
  85. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/syntax.py +0 -0
  86. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/unresolved_field_type.py +0 -0
  87. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/utils/__init__.py +0 -0
  88. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/exceptions/utils/source_finder.py +0 -0
  89. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/experimental/__init__.py +0 -0
  90. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/experimental/pydantic/__init__.py +0 -0
  91. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/experimental/pydantic/conversion.py +0 -0
  92. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/experimental/pydantic/conversion_types.py +0 -0
  93. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/experimental/pydantic/error_type.py +0 -0
  94. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/experimental/pydantic/exceptions.py +0 -0
  95. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/experimental/pydantic/fields.py +0 -0
  96. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/ext/LICENSE +0 -0
  97. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/ext/__init__.py +0 -0
  98. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/ext/dataclasses/LICENSE +0 -0
  99. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/ext/dataclasses/__init__.py +0 -0
  100. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/ext/dataclasses/dataclasses.py +0 -0
  101. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/ext/mypy_plugin.py +0 -0
  102. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/__init__.py +0 -0
  103. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/add_validation_rules.py +0 -0
  104. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/base_extension.py +0 -0
  105. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/context.py +0 -0
  106. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/directives.py +0 -0
  107. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/disable_validation.py +0 -0
  108. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/field_extension.py +0 -0
  109. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/mask_errors.py +0 -0
  110. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/max_aliases.py +0 -0
  111. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/max_tokens.py +0 -0
  112. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/parser_cache.py +0 -0
  113. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/pyinstrument.py +0 -0
  114. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/query_depth_limiter.py +0 -0
  115. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/runner.py +0 -0
  116. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/tracing/__init__.py +0 -0
  117. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/tracing/apollo.py +0 -0
  118. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/tracing/datadog.py +0 -0
  119. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/tracing/utils.py +0 -0
  120. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/utils.py +0 -0
  121. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/extensions/validation_cache.py +0 -0
  122. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/fastapi/__init__.py +0 -0
  123. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/fastapi/context.py +0 -0
  124. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/fastapi/router.py +0 -0
  125. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/__init__.py +0 -0
  126. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/argument.py +0 -0
  127. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/enum.py +0 -0
  128. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/field.py +0 -0
  129. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/mutation.py +0 -0
  130. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/object_type.py +0 -0
  131. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/scalar.py +0 -0
  132. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/schema.py +0 -0
  133. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/schema_directive.py +0 -0
  134. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/schema_directives.py +0 -0
  135. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/types.py +0 -0
  136. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/federation/union.py +0 -0
  137. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/field_extensions/__init__.py +0 -0
  138. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/field_extensions/input_mutation.py +0 -0
  139. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/file_uploads/__init__.py +0 -0
  140. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/file_uploads/scalars.py +0 -0
  141. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/file_uploads/utils.py +0 -0
  142. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/flask/__init__.py +0 -0
  143. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/flask/views.py +0 -0
  144. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/http/base.py +0 -0
  145. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/http/exceptions.py +0 -0
  146. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/http/ides.py +0 -0
  147. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/http/parse_content_type.py +0 -0
  148. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/http/sync_base_view.py +0 -0
  149. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/http/temporal_response.py +0 -0
  150. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/http/types.py +0 -0
  151. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/http/typevars.py +0 -0
  152. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/litestar/__init__.py +0 -0
  153. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/litestar/controller.py +0 -0
  154. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/parent.py +0 -0
  155. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/permission.py +0 -0
  156. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/printer/__init__.py +0 -0
  157. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/printer/ast_from_value.py +0 -0
  158. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/py.typed +0 -0
  159. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/quart/__init__.py +0 -0
  160. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/quart/views.py +0 -0
  161. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/relay/__init__.py +0 -0
  162. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/relay/exceptions.py +0 -0
  163. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/relay/fields.py +0 -0
  164. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/relay/types.py +0 -0
  165. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/relay/utils.py +0 -0
  166. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/resolvers.py +0 -0
  167. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/sanic/__init__.py +0 -0
  168. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/sanic/context.py +0 -0
  169. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/sanic/utils.py +0 -0
  170. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/sanic/views.py +0 -0
  171. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/scalars.py +0 -0
  172. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/__init__.py +0 -0
  173. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/base.py +0 -0
  174. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/compat.py +0 -0
  175. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/exceptions.py +0 -0
  176. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/name_converter.py +0 -0
  177. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/schema_converter.py +0 -0
  178. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/types/__init__.py +0 -0
  179. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/types/base_scalars.py +0 -0
  180. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/types/concrete_type.py +0 -0
  181. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/types/scalar.py +0 -0
  182. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/validation_rules/__init__.py +0 -0
  183. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema/validation_rules/one_of.py +0 -0
  184. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema_codegen/__init__.py +0 -0
  185. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema_directive.py +0 -0
  186. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/schema_directives.py +0 -0
  187. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/static/apollo-sandbox.html +0 -0
  188. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/static/pathfinder.html +0 -0
  189. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/subscriptions/__init__.py +0 -0
  190. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/subscriptions/protocols/__init__.py +0 -0
  191. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
  192. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -0
  193. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +0 -0
  194. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -0
  195. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +0 -0
  196. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/subscriptions/protocols/graphql_ws/types.py +0 -0
  197. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/test/__init__.py +0 -0
  198. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/test/client.py +0 -0
  199. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/tools/__init__.py +0 -0
  200. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/tools/create_type.py +0 -0
  201. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/tools/merge_types.py +0 -0
  202. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/__init__.py +0 -0
  203. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/arguments.py +0 -0
  204. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/auto.py +0 -0
  205. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/base.py +0 -0
  206. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/cast.py +0 -0
  207. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/enum.py +0 -0
  208. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/execution.py +0 -0
  209. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/field.py +0 -0
  210. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/fields/__init__.py +0 -0
  211. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/fields/resolver.py +0 -0
  212. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/graphql.py +0 -0
  213. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/info.py +0 -0
  214. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/lazy_type.py +0 -0
  215. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/mutation.py +0 -0
  216. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/nodes.py +0 -0
  217. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/object_type.py +0 -0
  218. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/private.py +0 -0
  219. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/scalar.py +0 -0
  220. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/type_resolver.py +0 -0
  221. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/union.py +0 -0
  222. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/types/unset.py +0 -0
  223. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/__init__.py +0 -0
  224. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/aio.py +0 -0
  225. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/await_maybe.py +0 -0
  226. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/dataclasses.py +0 -0
  227. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/debug.py +0 -0
  228. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/deprecations.py +0 -0
  229. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/graphql_lexer.py +0 -0
  230. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/importer.py +0 -0
  231. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/inspect.py +0 -0
  232. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/logging.py +0 -0
  233. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/operation.py +0 -0
  234. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/str_converters.py +0 -0
  235. {strawberry_graphql-0.263.0.dev1743450741 → strawberry_graphql-0.263.1}/strawberry/utils/typing.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: strawberry-graphql
3
- Version: 0.263.0.dev1743450741
3
+ Version: 0.263.1
4
4
  Summary: A library for creating GraphQL APIs
5
5
  License: MIT
6
6
  Keywords: graphql,api,rest,starlette,async
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
  name = "strawberry-graphql"
3
3
  packages = [ { include = "strawberry" } ]
4
- version = "0.263.0.dev.1743450741"
4
+ version = "0.263.1"
5
5
  description = "A library for creating GraphQL APIs"
6
6
  authors = ["Patrick Arminio <patrick.arminio@gmail.com>"]
7
7
  license = "MIT"
@@ -293,7 +293,8 @@ class GraphQLHTTPConsumer(
293
293
 
294
294
  async def render_graphql_ide(self, request: ChannelsRequest) -> ChannelsResponse:
295
295
  return ChannelsResponse(
296
- content=self.graphql_ide_html.encode(), content_type="text/html"
296
+ content=self.graphql_ide_html.encode(),
297
+ content_type="text/html; charset=utf-8",
297
298
  )
298
299
 
299
300
  def is_websocket_request(
@@ -348,7 +349,8 @@ class SyncGraphQLHTTPConsumer(
348
349
 
349
350
  def render_graphql_ide(self, request: ChannelsRequest) -> ChannelsResponse:
350
351
  return ChannelsResponse(
351
- content=self.graphql_ide_html.encode(), content_type="text/html"
352
+ content=self.graphql_ide_html.encode(),
353
+ content_type="text/html; charset=utf-8",
352
354
  )
353
355
 
354
356
  # Sync channels is actually async, but it uses database_sync_to_async to call
@@ -12,7 +12,7 @@ from pydantic.version import VERSION as PYDANTIC_VERSION
12
12
  from strawberry.experimental.pydantic.exceptions import UnsupportedTypeError
13
13
 
14
14
  if TYPE_CHECKING:
15
- from pydantic.fields import FieldInfo
15
+ from pydantic.fields import ComputedFieldInfo, FieldInfo
16
16
 
17
17
  IS_PYDANTIC_V2: bool = PYDANTIC_VERSION.startswith("2.")
18
18
  IS_PYDANTIC_V1: bool = not IS_PYDANTIC_V2
@@ -128,7 +128,33 @@ class PydanticV2Compat:
128
128
 
129
129
  return PydanticUndefined
130
130
 
131
- def get_model_fields(self, model: type[BaseModel]) -> dict[str, CompatModelField]:
131
+ def get_model_computed_fields(
132
+ self, model: type[BaseModel]
133
+ ) -> dict[str, CompatModelField]:
134
+ computed_field_info: dict[str, ComputedFieldInfo] = model.model_computed_fields
135
+ new_fields = {}
136
+ # Convert it into CompatModelField
137
+ for name, field in computed_field_info.items():
138
+ new_fields[name] = CompatModelField(
139
+ name=name,
140
+ type_=field.return_type,
141
+ outer_type_=field.return_type,
142
+ default=None,
143
+ default_factory=None,
144
+ required=False,
145
+ alias=field.alias,
146
+ # v2 doesn't have allow_none
147
+ allow_none=False,
148
+ has_alias=field is not None,
149
+ description=field.description,
150
+ _missing_type=self.PYDANTIC_MISSING_TYPE,
151
+ is_v1=False,
152
+ )
153
+ return new_fields
154
+
155
+ def get_model_fields(
156
+ self, model: type[BaseModel], include_computed: bool = False
157
+ ) -> dict[str, CompatModelField]:
132
158
  field_info: dict[str, FieldInfo] = model.model_fields
133
159
  new_fields = {}
134
160
  # Convert it into CompatModelField
@@ -148,6 +174,8 @@ class PydanticV2Compat:
148
174
  _missing_type=self.PYDANTIC_MISSING_TYPE,
149
175
  is_v1=False,
150
176
  )
177
+ if include_computed:
178
+ new_fields |= self.get_model_computed_fields(model)
151
179
  return new_fields
152
180
 
153
181
  @cached_property
@@ -175,7 +203,10 @@ class PydanticV1Compat:
175
203
  def PYDANTIC_MISSING_TYPE(self) -> Any: # noqa: N802
176
204
  return dataclasses.MISSING
177
205
 
178
- def get_model_fields(self, model: type[BaseModel]) -> dict[str, CompatModelField]:
206
+ def get_model_fields(
207
+ self, model: type[BaseModel], include_computed: bool = False
208
+ ) -> dict[str, CompatModelField]:
209
+ """`include_computed` is a noop for PydanticV1Compat."""
179
210
  new_fields = {}
180
211
  # Convert it into CompatModelField
181
212
  for name, field in model.__fields__.items(): # type: ignore[attr-defined]
@@ -284,7 +315,6 @@ else:
284
315
  smart_deepcopy,
285
316
  )
286
317
 
287
-
288
318
  __all__ = [
289
319
  "PydanticCompat",
290
320
  "get_args",
@@ -126,11 +126,12 @@ def type( # noqa: PLR0915
126
126
  description: Optional[str] = None,
127
127
  directives: Optional[Sequence[object]] = (),
128
128
  all_fields: bool = False,
129
+ include_computed: bool = False,
129
130
  use_pydantic_alias: bool = True,
130
131
  ) -> Callable[..., builtins.type[StrawberryTypeFromPydantic[PydanticModel]]]:
131
132
  def wrap(cls: Any) -> builtins.type[StrawberryTypeFromPydantic[PydanticModel]]: # noqa: PLR0915
132
133
  compat = PydanticCompat.from_model(model)
133
- model_fields = compat.get_model_fields(model)
134
+ model_fields = compat.get_model_fields(model, include_computed=include_computed)
134
135
  original_fields_set = set(fields) if fields else set()
135
136
 
136
137
  if fields:
@@ -171,7 +172,10 @@ def type( # noqa: PLR0915
171
172
  raise MissingFieldsListError(cls)
172
173
 
173
174
  ensure_all_auto_fields_in_pydantic(
174
- model=model, auto_fields=auto_fields_set, cls_name=cls.__name__
175
+ model=model,
176
+ auto_fields=auto_fields_set,
177
+ cls_name=cls.__name__,
178
+ include_computed=include_computed,
175
179
  )
176
180
 
177
181
  wrapped = _wrap_dataclass(cls)
@@ -117,11 +117,17 @@ def get_default_factory_for_field(
117
117
 
118
118
 
119
119
  def ensure_all_auto_fields_in_pydantic(
120
- model: type[BaseModel], auto_fields: set[str], cls_name: str
120
+ model: type[BaseModel],
121
+ auto_fields: set[str],
122
+ cls_name: str,
123
+ include_computed: bool = False,
121
124
  ) -> None:
122
125
  compat = PydanticCompat.from_model(model)
123
126
  # Raise error if user defined a strawberry.auto field not present in the model
124
- non_existing_fields = list(auto_fields - compat.get_model_fields(model).keys())
127
+ non_existing_fields = list(
128
+ auto_fields
129
+ - compat.get_model_fields(model, include_computed=include_computed).keys()
130
+ )
125
131
 
126
132
  if non_existing_fields:
127
133
  raise AutoFieldsNotInBaseModelError(
@@ -42,9 +42,10 @@ class OpenTelemetryExtension(SchemaExtension):
42
42
  *,
43
43
  execution_context: Optional[ExecutionContext] = None,
44
44
  arg_filter: Optional[ArgFilter] = None,
45
+ tracer_provider: Optional[trace.TracerProvider] = None,
45
46
  ) -> None:
46
47
  self._arg_filter = arg_filter
47
- self._tracer = trace.get_tracer("strawberry")
48
+ self._tracer = trace.get_tracer("strawberry", tracer_provider=tracer_provider)
48
49
  self._span_holder = {}
49
50
  if execution_context:
50
51
  self.execution_context = execution_context
@@ -1,13 +1,11 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from dataclasses import dataclass
4
- from typing import Any, Optional
4
+ from typing import TYPE_CHECKING, Any, Optional
5
5
  from typing_extensions import Literal, TypedDict
6
6
 
7
- from strawberry.schema._graphql_core import (
8
- GraphQLIncrementalExecutionResults,
9
- ResultType,
10
- )
7
+ if TYPE_CHECKING:
8
+ from strawberry.types import ExecutionResult
11
9
 
12
10
 
13
11
  class GraphQLHTTPResponse(TypedDict, total=False):
@@ -16,10 +14,7 @@ class GraphQLHTTPResponse(TypedDict, total=False):
16
14
  extensions: Optional[dict[str, object]]
17
15
 
18
16
 
19
- def process_result(result: ResultType) -> GraphQLHTTPResponse:
20
- if isinstance(result, GraphQLIncrementalExecutionResults):
21
- return result
22
-
17
+ def process_result(result: ExecutionResult) -> GraphQLHTTPResponse:
23
18
  data: GraphQLHTTPResponse = {"data": result.data}
24
19
 
25
20
  if result.errors:
@@ -25,9 +25,6 @@ from strawberry.http import (
25
25
  process_result,
26
26
  )
27
27
  from strawberry.http.ides import GraphQL_IDE
28
- from strawberry.schema._graphql_core import (
29
- GraphQLIncrementalExecutionResults,
30
- )
31
28
  from strawberry.schema.base import BaseSchema
32
29
  from strawberry.schema.exceptions import InvalidOperationTypeError
33
30
  from strawberry.subscriptions import GRAPHQL_TRANSPORT_WS_PROTOCOL, GRAPHQL_WS_PROTOCOL
@@ -261,7 +258,7 @@ class AsyncBaseHTTPView(
261
258
  root_value: Optional[RootValue] = UNSET,
262
259
  ) -> WebSocketResponse: ...
263
260
 
264
- async def run( # noqa: PLR0915
261
+ async def run(
265
262
  self,
266
263
  request: Union[Request, WebSocketRequest],
267
264
  context: Optional[Context] = UNSET,
@@ -352,73 +349,6 @@ class AsyncBaseHTTPView(
352
349
  "Content-Type": "multipart/mixed;boundary=graphql;subscriptionSpec=1.0,application/json",
353
350
  },
354
351
  )
355
- if isinstance(result, GraphQLIncrementalExecutionResults):
356
-
357
- async def stream() -> AsyncGenerator[str, None]:
358
- yield "---"
359
-
360
- response = await self.process_result(request, result.initial_result)
361
-
362
- response["hasNext"] = result.initial_result.has_next
363
- response["pending"] = [
364
- p.formatted for p in result.initial_result.pending
365
- ]
366
- response["extensions"] = result.initial_result.extensions
367
-
368
- yield self.encode_multipart_data(response, "-")
369
-
370
- async for value in result.subsequent_results:
371
- response = {
372
- "hasNext": value.has_next,
373
- "extensions": value.extensions,
374
- }
375
-
376
- if value.pending:
377
- response["pending"] = [p.formatted for p in value.pending]
378
-
379
- if value.completed:
380
- response["completed"] = [p.formatted for p in value.completed]
381
-
382
- if value.incremental:
383
- incremental = []
384
-
385
- for incremental_value in value.incremental:
386
- pending_value = next(
387
- (
388
- v
389
- for v in result.initial_result.pending
390
- if v.id == incremental_value.id
391
- ),
392
- None,
393
- )
394
-
395
- assert pending_value
396
-
397
- incremental.append(
398
- {
399
- **incremental_value.formatted,
400
- # for Apollo
401
- # content type is `multipart/mixed;deferSpec=20220824,application/json`
402
- "path": pending_value.path,
403
- "label": pending_value.label,
404
- }
405
- )
406
-
407
- response["incremental"] = incremental
408
-
409
- yield self.encode_multipart_data(response, "-")
410
-
411
- yield "--\r\n"
412
-
413
- return await self.create_streaming_response(
414
- request,
415
- stream,
416
- sub_response,
417
- headers={
418
- "Transfer-Encoding": "chunked",
419
- "Content-Type": 'multipart/mixed; boundary="-"',
420
- },
421
- )
422
352
 
423
353
  response_data = await self.process_result(request=request, result=result)
424
354
 
@@ -430,16 +360,12 @@ class AsyncBaseHTTPView(
430
360
  )
431
361
 
432
362
  def encode_multipart_data(self, data: Any, separator: str) -> str:
433
- encoded_data = self.encode_json(data)
434
-
435
363
  return "".join(
436
364
  [
437
- "\r\n",
438
- "Content-Type: application/json; charset=utf-8\r\n",
439
- "Content-Length: " + str(len(encoded_data)) + "\r\n",
440
- "\r\n",
441
- encoded_data,
442
- f"\r\n--{separator}",
365
+ f"\r\n--{separator}\r\n",
366
+ "Content-Type: application/json\r\n\r\n",
367
+ self.encode_json(data),
368
+ "\n",
443
369
  ]
444
370
  )
445
371
 
@@ -561,9 +561,9 @@ def print_schema_definition(
561
561
  def print_directive(
562
562
  directive: GraphQLDirective, *, schema: BaseSchema
563
563
  ) -> Optional[str]:
564
- strawberry_directive = directive.extensions.get("strawberry-definition")
564
+ strawberry_directive = directive.extensions["strawberry-definition"]
565
565
 
566
- if strawberry_directive is None or (
566
+ if (
567
567
  isinstance(strawberry_directive, StrawberrySchemaDirective)
568
568
  and not strawberry_directive.print_definition
569
569
  ):
@@ -16,7 +16,6 @@ class StrawberryConfig:
16
16
  relay_max_results: int = 100
17
17
  disable_field_suggestions: bool = False
18
18
  info_class: type[Info] = Info
19
- enable_experimental_incremental_execution: bool = False
20
19
 
21
20
  def __post_init__(
22
21
  self,
@@ -29,6 +29,8 @@ from graphql import (
29
29
  parse,
30
30
  validate_schema,
31
31
  )
32
+ from graphql.execution import ExecutionContext as GraphQLExecutionContext
33
+ from graphql.execution import execute, subscribe
32
34
  from graphql.execution.middleware import MiddlewareManager
33
35
  from graphql.type.directives import specified_directives
34
36
  from graphql.validation import validate
@@ -61,15 +63,6 @@ from strawberry.utils import IS_GQL_32
61
63
  from strawberry.utils.await_maybe import await_maybe
62
64
 
63
65
  from . import compat
64
- from ._graphql_core import (
65
- GraphQLExecutionContext,
66
- GraphQLIncrementalExecutionResults,
67
- ResultType,
68
- execute,
69
- experimental_execute_incrementally,
70
- incremental_execution_directives,
71
- subscribe,
72
- )
73
66
  from .base import BaseSchema
74
67
  from .config import StrawberryConfig
75
68
  from .exceptions import InvalidOperationTypeError
@@ -98,7 +91,6 @@ OriginSubscriptionResult = Union[
98
91
  AsyncIterator[OriginalExecutionResult],
99
92
  ]
100
93
 
101
-
102
94
  DEFAULT_ALLOWED_OPERATION_TYPES = {
103
95
  OperationType.QUERY,
104
96
  OperationType.MUTATION,
@@ -267,16 +259,11 @@ class Schema(BaseSchema):
267
259
  graphql_types.append(graphql_type)
268
260
 
269
261
  try:
270
- directives = specified_directives + tuple(graphql_directives)
271
-
272
- if self.config.enable_experimental_incremental_execution:
273
- directives = tuple(directives) + tuple(incremental_execution_directives)
274
-
275
262
  self._schema = GraphQLSchema(
276
263
  query=query_type,
277
264
  mutation=mutation_type,
278
265
  subscription=subscription_type if subscription else None,
279
- directives=directives,
266
+ directives=specified_directives + tuple(graphql_directives),
280
267
  types=graphql_types,
281
268
  extensions={
282
269
  GraphQLCoreConverter.DEFINITION_BACKREF: self,
@@ -454,16 +441,12 @@ class Schema(BaseSchema):
454
441
  async def _handle_execution_result(
455
442
  self,
456
443
  context: ExecutionContext,
457
- result: ResultType,
444
+ result: Union[GraphQLExecutionResult, ExecutionResult],
458
445
  extensions_runner: SchemaExtensionsRunner,
459
446
  *,
460
447
  # TODO: can we remove this somehow, see comment in execute
461
448
  skip_process_errors: bool = False,
462
449
  ) -> ExecutionResult:
463
- # TODO: handle this, also, why do we have both GraphQLExecutionResult and ExecutionResult?
464
- if isinstance(result, GraphQLIncrementalExecutionResults):
465
- return result
466
-
467
450
  # Set errors on the context so that it's easier
468
451
  # to access in extensions
469
452
  if result.errors:
@@ -504,14 +487,6 @@ class Schema(BaseSchema):
504
487
  extensions_runner = self.create_extensions_runner(execution_context, extensions)
505
488
  middleware_manager = self._get_middleware_manager(extensions)
506
489
 
507
- execute_function = (
508
- experimental_execute_incrementally
509
- if self.config.enable_experimental_incremental_execution
510
- else execute
511
- )
512
-
513
- # TODO: raise if experimental_execute_incrementally is not available
514
-
515
490
  try:
516
491
  async with extensions_runner.operation():
517
492
  # Note: In graphql-core the schema would be validated here but in
@@ -530,7 +505,7 @@ class Schema(BaseSchema):
530
505
  async with extensions_runner.executing():
531
506
  if not execution_context.result:
532
507
  result = await await_maybe(
533
- execute_function(
508
+ execute(
534
509
  self._schema,
535
510
  execution_context.graphql_document,
536
511
  root_value=execution_context.root_value,
@@ -546,9 +521,7 @@ class Schema(BaseSchema):
546
521
  result = execution_context.result
547
522
  # Also set errors on the execution_context so that it's easier
548
523
  # to access in extensions
549
-
550
- # TODO: maybe here use the first result from incremental execution if it exists
551
- if isinstance(result, GraphQLExecutionResult) and result.errors:
524
+ if result.errors:
552
525
  execution_context.errors = result.errors
553
526
 
554
527
  # Run the `Schema.process_errors` function here before
@@ -598,14 +571,6 @@ class Schema(BaseSchema):
598
571
  extensions_runner = self.create_extensions_runner(execution_context, extensions)
599
572
  middleware_manager = self._get_middleware_manager(extensions)
600
573
 
601
- execute_function = (
602
- experimental_execute_incrementally
603
- if self.config.enable_experimental_incremental_execution
604
- else execute
605
- )
606
-
607
- # TODO: raise if experimental_execute_incrementally is not available
608
-
609
574
  try:
610
575
  with extensions_runner.operation():
611
576
  # Note: In graphql-core the schema would be validated here but in
@@ -647,7 +612,7 @@ class Schema(BaseSchema):
647
612
 
648
613
  with extensions_runner.executing():
649
614
  if not execution_context.result:
650
- result = execute_function(
615
+ result = execute(
651
616
  self._schema,
652
617
  execution_context.graphql_document,
653
618
  root_value=execution_context.root_value,
@@ -1,4 +1,4 @@
1
- <!doctype html>
1
+ <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
4
  <title>Strawberry GraphiQL</title>
@@ -61,8 +61,8 @@
61
61
  <link
62
62
  crossorigin
63
63
  rel="stylesheet"
64
- href="https://unpkg.com/graphiql@3.8.3/graphiql.min.css"
65
- integrity="sha384-Mq3vbRBY71jfjQAt/DcjxUIYY33ksal4cgdRt9U/hNPvHBCaT2JfJ/PTRiPKf0aM"
64
+ href="https://unpkg.com/graphiql@3.0.9/graphiql.min.css"
65
+ integrity="sha384-yz3/sqpuplkA7msMo0FE4ekg0xdwdvZ8JX9MVZREsxipqjU4h8IRfmAMRcb1QpUy"
66
66
  />
67
67
 
68
68
  <link
@@ -77,8 +77,8 @@
77
77
  <div id="graphiql" class="graphiql-container">Loading...</div>
78
78
  <script
79
79
  crossorigin
80
- src="https://unpkg.com/graphiql@3.8.3/graphiql.min.js"
81
- integrity="sha384-HbRVEFG0JGJZeAHCJ9Xm2+tpknBQ7QZmNlO/DgZtkZ0aJSypT96YYGRNod99l9Ie"
80
+ src="https://unpkg.com/graphiql@3.0.9/graphiql.min.js"
81
+ integrity="sha384-Mjte+vxCWz1ZYCzszGHiJqJa5eAxiqI4mc3BErq7eDXnt+UGLXSEW7+i0wmfPiji"
82
82
  ></script>
83
83
  <script
84
84
  crossorigin
@@ -1,46 +0,0 @@
1
- from typing import Union
2
-
3
- from graphql.execution import ExecutionContext as GraphQLExecutionContext
4
- from graphql.execution import ExecutionResult as GraphQLExecutionResult
5
- from graphql.execution import execute, subscribe
6
-
7
- from strawberry.types import ExecutionResult
8
-
9
- try:
10
- from graphql import (
11
- ExperimentalIncrementalExecutionResults as GraphQLIncrementalExecutionResults,
12
- )
13
- from graphql.execution import experimental_execute_incrementally
14
- from graphql.type.directives import (
15
- GraphQLDeferDirective,
16
- GraphQLStreamDirective,
17
- )
18
-
19
- incremental_execution_directives = (
20
- GraphQLDeferDirective,
21
- GraphQLStreamDirective,
22
- )
23
-
24
- except ImportError:
25
- GraphQLIncrementalExecutionResults = type(None)
26
-
27
- incremental_execution_directives = []
28
- experimental_execute_incrementally = None
29
-
30
-
31
- # TODO: give this a better name, maybe also a better place
32
- ResultType = Union[
33
- GraphQLExecutionResult,
34
- GraphQLIncrementalExecutionResults,
35
- ExecutionResult,
36
- ]
37
-
38
- __all__ = [
39
- "GraphQLExecutionContext",
40
- "GraphQLIncrementalExecutionResults",
41
- "ResultType",
42
- "execute",
43
- "experimental_execute_incrementally",
44
- "incremental_execution_directives",
45
- "subscribe",
46
- ]