Strawberry-graphql

Latest version: v0.235.0

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

Scan your dependencies

Page 66 of 122

0.93.21

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

This release adds `deprecation_reason` support to arguments and mutations.

Contributed by [Silas Sewell](https://github.com/silas) [PR #1527](https://github.com/strawberry-graphql/strawberry/pull/1527/)

0.93.20

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

This release checks for AutoFieldsNotInBaseModelError when converting from pydantic models.
It is raised when strawberry.auto is used, but the pydantic model does not have
the particular field defined.

python
class User(BaseModel):
age: int


strawberry.experimental.pydantic.type(User)
class UserType:
age: strawberry.auto
password: strawberry.auto


Previously no errors would be raised, and the password field would not appear on graphql schema.
Such mistakes could be common during refactoring. Now, AutoFieldsNotInBaseModelError is raised.

Contributed by [James Chua](https://github.com/thejaminator) [PR #1551](https://github.com/strawberry-graphql/strawberry/pull/1551/)

0.93.19

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

Fixes TypeError when converting a pydantic BaseModel with NewType field

Contributed by [James Chua](https://github.com/thejaminator) [PR #1547](https://github.com/strawberry-graphql/strawberry/pull/1547/)

0.93.18

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

This release allows setting http headers and custom http status codes with FastAPI GraphQLRouter.

Contributed by [David Němec](https://github.com/davidnemec) [PR #1537](https://github.com/strawberry-graphql/strawberry/pull/1537/)

0.93.17

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

0.93.16

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

Add support for piping `StrawberryUnion` and `None` when annotating types.

For example:
python
strawberry.type
class Cat:
name: str


strawberry.type
class Dog:
name: str


Animal = strawberry.union("Animal", (Cat, Dog))


strawberry.type
class Query:
animal: Animal | None This line no longer triggers a TypeError


Contributed by [Yossi Rozantsev](https://github.com/Apakottur) [PR #1540](https://github.com/strawberry-graphql/strawberry/pull/1540/)

Page 66 of 122

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.