strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

A GraphQL library for Python that leverages type annotations πŸ“

Results 331 strawberry issues
Sort by recently updated
recently updated
newest added

updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.1 β†’ v0.2.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.1...v0.2.2)

## Describe the Bug I use the `granian` HTTP Server support ASGI and get a issue below ``` File "/usr/local/lib/python3.11/site-packages/strawberry/channels/handlers/base.py", line 88, in dispatch await super().dispatch(message) File "/usr/local/lib/python3.11/site-packages/channels/consumer.py", line 73,...

bug

Since `strawberry-graphql==0.169.0` mypy gives the following error on `graphql_app = GraphQLRouter(schema)`: ```shell app.py:16: error: Need type annotation for "graphql_app" [var-annotated] Found 1 error in 1 file (checked 1 source file)...

bug

## Describe the Bug If a gql_transport_ws connection ended before `connection_init_timeout` asncio will warn: (**[if there were no event loops after the task was closed](https://stackoverflow.com/questions/40897428/please-explain-task-was-destroyed-but-it-is-pending-after-cancelling-tasks)**) ```console Task was destroyed but...

bug

a custom resolver with permission_classes doesn't accept @sync_to_async decorator Here is a code sample. ``` @strawberry.type class Query: test: typing.Optional[User] = strawberry.field(resolver=test, permission_classes=[IsAuthenticated]) class IsAuthenticated(BasePermission): message = str(UnauthorizedError) @sync_to_async #...

bug

Edited the Interface documentation so the interface fields are correct. ## Description On the interface documentation the Strawberry example had "fix" as a field while the GraphQL Schema example had...

Currently, Strawberry lacks a mechanism for extending types with reusable logic, such as pagination, database model mappers for libraries like sqlalchemy, or compatibility extensions like strawberry.experimental.pydantic. Much of the logic...

Prototype for https://github.com/strawberry-graphql/strawberry/issues/2605

## Describe the Bug I have the following code: ``` import pydantic import strawberry from typing import Optional class PydanticNullableType(pydantic.BaseModel): data: Optional[str] = None @strawberry.scalar class NullableString: @staticmethod def serialize(value:...

bug

## Describe the Bug VSCode and Pyright give me red squiggly lines when using `strawberry.file_uploads.Upload`. Repro: Save a file with the contents: ``` from strawberry.file_uploads import Upload async def read(f:...

bug