strawberry
strawberry copied to clipboard
A GraphQL library for Python that leverages type annotations 🍓
## Description Change one of the overrides of `strawberry.field` to return `-> Resolver[T]` if `resolver = ...` is provided. This forces you to annotate your fields as `field: Resolver[int] =...
If I implement the following construct: ``` # graphql/file.py if TYPE_CHECKING: from graphql.status import StatusesResult @strawberry.type class File: statuses: Annotated[ "StatusesResult", strawberry.lazy("graphql.status") ] ``` ``` # graphql/status.py @strawberry.type class Status:...
Server side ping messages are necessary to keep the websocket connection open on all types of platforms. The particular platform I'm working with is react-native on Android ## Describe the...
## Describe the Bug The code below doesn't give any warnings using `mypy` with Strawberry plugin or `PyRight`: ```python from strawberry import field, type def resolver() -> int: return 42...
When importing strawberry with all waring enabled (-Wall) you get ``` .../site-packages/strawberry/types/fields/resolver.py:199: DeprecationWarning: Argument name-based matching of 'info' is deprecated and will be removed in v1.0. Ensure that reserved arguments...
Bumps [django](https://github.com/django/django) from 4.2.9 to 4.2.10. Commits a684d73 [4.2.x] Bumped version for 4.2.10 release. 572ea07 [4.2.x] Fixed CVE-2024-24680 -- Mitigated potential DoS in intcomma template ... 9fe7411 [4.2.x] Pinned black...
Looks like Codecov is still failing a lot, we send coverage info for every single test, I think it would be best to collect all the coverage and then send...
This is a new protocol created by Apollo (and supported by Apollo Client) # TODO - [x] Add support for this in all HTTP integrations that support subscriptions - [x]...
This is how you create a custom scalar now: ```python import base64 from typing import NewType import strawberry Base64 = strawberry.scalar( NewType("Base64", bytes), serialize=lambda v: base64.b64encode(v).decode("utf-8"), parse_value=lambda v: base64.b64decode(v).encode("utf-8"), )...
When using `from_pydantic` with strawberry-graphql = 0.216.0 and mypy = 1.7.1 with the extra parameter, I receive a warning from mypy that extra does not exist. ## Description I added...