Strawberry-graphql

Latest version: v0.229.1

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

Scan your dependencies

Page 42 of 119

0.134.3

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

This release fixes an issue that prevented using strawberry.lazy with relative paths.

The following should work now:

python
strawberry.type
class TypeA:
b: Annotated["TypeB", strawberry.lazy(".type_b")]


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

0.134.2

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

This release adds pyupgrade to our CI and includes some minor changes to keep our codebase modern.

Contributed by [Liel Fridman](https://github.com/lielfr) via [PR #2255](https://github.com/strawberry-graphql/strawberry/pull/2255/)

0.134.1

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

This release fixes an issue that prevented using lazy types inside
generic types.

The following is now allowed:

python
T = TypeVar("T")

TypeAType = Annotated["TypeA", strawberry.lazy("tests.schema.test_lazy.type_a")]


strawberry.type
class Edge(Generic[T]):
node: T


strawberry.type
class Query:
users: Edge[TypeAType]


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

0.134.0

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

These release allow you to define a different `url` in the `GraphQLTestClient`, the default is "/graphql/".

Here's an example with Starlette client:
python
import pytest

from starlette.testclient import TestClient
from strawberry.asgi.test import GraphQLTestClient


pytest.fixture
def graphql_client() -> GraphQLTestClient:
return GraphQLTestClient(
TestClient(app, base_url="http://localhost:8000"), url="/api/"
)


Contributed by [Etty](https://github.com/estyxx) via [PR #2238](https://github.com/strawberry-graphql/strawberry/pull/2238/)

0.133.7

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

This release fixes a type issue when passing `scalar_overrides` to `strawberry.Schema`

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

0.133.6

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

Fix support for arguments where `arg.type=LazyType["EnumType"]`

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

Page 42 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.