Strawberry-graphql

Latest version: v0.263.0

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 73 of 133

0.103.0

Not secure
--------------------

This release adds an experimental codegen feature for queries.
It allows to combine a graphql query and Strawberry schema to generate
Python types or TypeScript types.

You can use the following command:

bash
strawberry codegen --schema schema --output-dir ./output -p python query.graphql


to generate python types that correspond to your GraphQL query.

Contributed by [Patrick Arminio](https://github.com/patrick91) via [PR #1655](https://github.com/strawberry-graphql/strawberry/pull/1655/)

0.102.3

Not secure
--------------------

This release makes StrawberryOptional and StrawberryList hashable,
allowing to use strawberry types with libraries like dacite and
dataclasses_json.

Contributed by [Patrick Arminio](https://github.com/patrick91) via [PR #1726](https://github.com/strawberry-graphql/strawberry/pull/1726/)

0.102.2

Not secure
--------------------

Add support for postponed evaluation of annotations
([PEP-563](https://www.python.org/dev/peps/pep-0563/)) to `strawberry.Private`
annotated fields.

Example

This release fixes Issue 1586 using schema-conversion time filtering of
`strawberry.Private` fields for PEP-563. This means the following is now
supported:

python
strawberry.type
class Query:
foo: "strawberry.Private[int]"


Forward references are supported as well:

python
from __future__ import annotations

from dataclasses import dataclass


strawberry.type
class Query:
private_foo: strawberry.Private[SensitiveData]

strawberry.field
def foo(self) -> int:
return self.private_foo.visible


dataclass
class SensitiveData:
visible: int
not_visible: int


Contributed by [San Kilkis](https://github.com/skilkis) via [PR #1684](https://github.com/strawberry-graphql/strawberry/pull/1684/)

0.102.1

Not secure
--------------------

This PR improves the support for scalars when using MyPy.

Contributed by [Patrick Arminio](https://github.com/patrick91) via [PR #1205](https://github.com/strawberry-graphql/strawberry/pull/1205/)

0.102.0

Not secure
--------------------

Added the response object to `get_context` on the `flask` view. This means that in fields, something like this can be used;

python
strawberry.field
def response_check(self, info: strawberry.Info) -> bool:
response: Response = info.context["response"]
response.status_code = 401

return True

0.101.0

Not secure
--------------------

This release adds support for `graphql-transport-ws` single result operations.

Single result operations allow clients to execute queries and mutations over an existing WebSocket connection.

Contributed by [Jonathan Ehwald](https://github.com/DoctorJohn) [PR #1698](https://github.com/strawberry-graphql/strawberry/pull/1698/)

Page 73 of 133

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.