Strawberry-graphql

Latest version: v0.229.1

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

Scan your dependencies

Page 50 of 119

0.119.1

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

An explanatory custom exception is raised when union of GraphQL input types is attempted.

Contributed by [Dhanshree Arora](https://github.com/DhanshreeA) via [PR #2019](https://github.com/strawberry-graphql/strawberry/pull/2019/)

0.119.0

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

This release changes when we add the custom directives extension, previously
the extension was always enabled, now it is only enabled if you pass custom
directives to `strawberry.Schema`.

Contributed by [bomtall](https://github.com/bomtall) via [PR #2020](https://github.com/strawberry-graphql/strawberry/pull/2020/)

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/)

Page 50 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.