Strawberry-graphql

Latest version: v0.229.1

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

Scan your dependencies

Page 12 of 119

0.208.3

--------------------

Adding support for additional pydantic built in types like EmailStr or PostgresDsn.

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

0.208.2

--------------------

This release fixes an issue that would prevent using generics with unnamed
unions, like in this example:

python
from typing import Generic, TypeVar, Union
import strawberry

T = TypeVar("T")


strawberry.type
class Connection(Generic[T]):
nodes: list[T]


strawberry.type
class Entity1:
id: int


strawberry.type
class Entity2:
id: int


strawberry.type
class Query:
entities: Connection[Union[Entity1, Entity2]]


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

0.208.1

--------------------

This fixes a bug where codegen would choke trying to find a field in the schema for a generic type.

Contributed by [Matt Gilson](https://github.com/mgilson) via [PR #3077](https://github.com/strawberry-graphql/strawberry/pull/3077/)

0.208.0

--------------------

Adds new strawberry.Parent type annotation to support resolvers without use of self.

E.g.

python
dataclass
class UserRow:
id_: str


strawberry.type
class User:
strawberry.field
staticmethod
async def name(parent: strawberry.Parent[UserRow]) -> str:
return f"User Number {parent.id}"


strawberry.type
class Query:
strawberry.field
def user(self) -> User:
return UserRow(id_="1234")


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

0.207.1

--------------------

This fixes a bug where codegen would choke on FragmentSpread nodes in the GraphQL during type collection.

e.g.:


fragment PartialBlogPost on BlogPost {
title
}

query OperationName {
interface {
id
... on BlogPost {
...PartialBlogPost
}
... on Image {
url
}
}
}


The current version of the code generator is not able to handle the `...PartialBogPost` in this position because it assumes it can only find `Field` type nodes even though the spread should be legit.

Contributed by [Matt Gilson](https://github.com/mgilson) via [PR #3086](https://github.com/strawberry-graphql/strawberry/pull/3086/)

0.207.0

--------------------

This release removes the deprecated `ignore` argument from the `QueryDepthLimiter` extension.

Contributed by [Kai Benevento](https://github.com/benesgarage) via [PR #3093](https://github.com/strawberry-graphql/strawberry/pull/3093/)

Page 12 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.