Strawberry-graphql

Latest version: v0.235.0

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

Scan your dependencies

Page 43 of 122

0.139.0

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

This release changes the type resolution priority to prefer the field annotation over the resolver return type.

python
def my_resolver() -> str:
return "1.33"


strawberry.type
class Query:
a: float = strawberry.field(resolver=my_resolver)


schema = strawberry.Schema(Query)

Before:
str(
schema
) == """
type Query {
a: String!
}
"""

After:
str(
schema
) == """
type Query {
a: Float!
}
"""


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

0.138.2

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

Fix Pydantic integration for Python 3.10.0 (which was missing the `kw_only`
parameter for `dataclasses.make_dataclass()`).

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

0.138.1

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

This release changes an internal implementation for FastAPI's
GraphQL router. This should reduce overhead when using the context,
and it shouldn't affect your code.

Contributed by [Kristján Valur Jónsson](https://github.com/kristjanvalur) via [PR #2278](https://github.com/strawberry-graphql/strawberry/pull/2278/)

0.138.0

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

This release adds support for generic in arguments, see the following example:

python
T = TypeVar("T")


strawberry.type
class Node(Generic[T]):
strawberry.field
def data(self, arg: T) -> T: `arg` is also generic
return arg


Contributed by [A. Coady](https://github.com/coady) via [PR #2293](https://github.com/strawberry-graphql/strawberry/pull/2293/)

0.137.1

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

Allowed `CustomScalar | None` syntax for python >= 3.10.

Contributed by [Guillaume Andreu Sabater](https://github.com/g-as) via [PR #2279](https://github.com/strawberry-graphql/strawberry/pull/2279/)

0.137.0

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

This release fixes errors when using Union-of-lazy-types

Contributed by [Paulo Costa](https://github.com/paulo-raca) via [PR #2271](https://github.com/strawberry-graphql/strawberry/pull/2271/)

Page 43 of 122

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.