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 75 of 119

0.77.7

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

Fix issues ([1158][issue1158] and [1104][issue1104]) where Generics using LazyTypes
and Enums would not be properly resolved

These now function as expected:

Enum

python
T = TypeVar("T")


strawberry.enum
class VehicleMake(Enum):
FORD = "ford"
TOYOTA = "toyota"
HONDA = "honda"


strawberry.type
class GenericForEnum(Generic[T]):
generic_slot: T


strawberry.type
class SomeType:
field: GenericForEnum[VehicleMake]


LazyType

`another_file.py`
python
strawberry.type
class TypeFromAnotherFile:
something: bool


`this_file.py`
python
T = TypeVar("T")


strawberry.type
class GenericType(Generic[T]):
item: T


strawberry.type
class RealType:
lazy: GenericType[LazyType["TypeFromAnotherFile", "another_file.py"]]


[issue1104]: https://github.com/strawberry-graphql/strawberry/issues/1104
[issue1158]: https://github.com/strawberry-graphql/strawberry/issues/1158

Contributed by [ignormies](https://github.com/BryceBeagle) [PR #1235](https://github.com/strawberry-graphql/strawberry/pull/1235/)

0.77.6

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

This release adds fragment and input variable information to the
`selected_fields` attribute on the `Info` object.

Contributed by [Jonathan Kim](https://github.com/jkimbo) [PR #1213](https://github.com/strawberry-graphql/strawberry/pull/1213/)

0.77.5

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

Fixes a bug in the Pydantic conversion code around `Union` values.

Contributed by [Matt Allen](https://github.com/Matt343) [PR #1231](https://github.com/strawberry-graphql/strawberry/pull/1231/)

0.77.4

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

Fixes a bug in the `export-schema` command around the handling of local modules.

Contributed by [Matt Allen](https://github.com/Matt343) [PR #1233](https://github.com/strawberry-graphql/strawberry/pull/1233/)

0.77.3

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

Fixes a bug in the Pydantic conversion code around complex `Optional` values.

Contributed by [Matt Allen](https://github.com/Matt343) [PR #1229](https://github.com/strawberry-graphql/strawberry/pull/1229/)

0.77.2

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

This release adds a new exception called `InvalidFieldArgument` which is raised when a Union or Interface is used as an argument type.
For example this will raise an exception:
python
import strawberry


strawberry.type
class Noun:
text: str


strawberry.type
class Verb:
text: str


Word = strawberry.union("Word", types=(Noun, Verb))


strawberry.field
def add_word(word: Word) -> bool: ...


Contributed by [Mohammad Hossein Yazdani](https://github.com/MAM-SYS) [PR #1222](https://github.com/strawberry-graphql/strawberry/pull/1222/)

Page 75 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.