Strawberry-graphql

Latest version: v0.235.0

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

Scan your dependencies

Page 53 of 122

0.118.2

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

This release adds an initial fix to make `strawberry.auto` work when using
`from __future__ import annotations`.

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

0.118.1

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

Fixes issue where users without pydantic were not able to use the mypy plugin.

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

0.118.0

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

You can now pass keyword arguments to `to_pydantic`
python
from pydantic import BaseModel
import strawberry


class MyModel(BaseModel):
email: str
password: str


strawberry.experimental.pydantic.input(model=MyModel)
class MyModelStrawberry:
email: strawberry.auto
no password field here


MyModelStrawberry(email="").to_pydantic(password="hunter")


Also if you forget to pass password, mypy will complain

python
MyModelStrawberry(email="").to_pydantic()
error: Missing named argument "password" for "to_pydantic" of "MyModelStrawberry"


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

0.117.1

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

Allow to add alias to fields generated from pydantic with `strawberry.field(name="ageAlias")`.


class User(pydantic.BaseModel):
age: int

strawberry.experimental.pydantic.type(User)
class UserType:
age: strawberry.auto = strawberry.field(name="ageAlias")


Contributed by [Alex](https://github.com/benzolium) via [PR #1986](https://github.com/strawberry-graphql/strawberry/pull/1986/)

0.117.0

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

This release fixes an issue that required installing opentelemetry when
trying to use the ApolloTracing extension

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

0.116.4

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

Fix regression caused by the new resolver argument handling mechanism
introduced in v0.115.0. This release restores the ability to use unhashable
default values in resolvers such as dict and list. See example below:

python
strawberry.type
class Query:
strawberry.field
def field(self, x: List[str] = ["foo"], y: JSON = {"foo": 42}) -> str: noqa: B006
return f"{x} {y}"


Thanks to coady for the regression report!

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

Page 53 of 122

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.