Strawberry-graphql

Latest version: v0.235.0

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

Scan your dependencies

Page 99 of 122

0.43.1

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

This releases fixes an issue with Strawberry requiring Pydantic even when not used.

0.43.0

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

This release adds support for creating types from Pydantic models. Here's an
example:

python
import strawberry

from datetime import datetime
from typing import List, Optional
from pydantic import BaseModel


class UserModel(BaseModel):
id: int
name = "John Doe"
signup_ts: Optional[datetime] = None
friends: List[int] = []


strawberry.experimental.pydantic.type(
model=UserModel, fields=["id", "name", "friends"]
)
class UserType:
pass

0.42.7

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

Add some checks to make sure the types passed to `.union` are valid.

0.42.6

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

Fix issue preventing reusing the same resolver for multiple fields, like here:

python
def get_name(self) -> str:
return "Name"


strawberry.type
class Query:
name: str = strawberry.field(resolver=get_name)
name_2: str = strawberry.field(resolver=get_name)

0.42.5

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

Another small improvement for mypy, this should prevent mypy from crashing when it can't find a type

0.42.4

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

This release fixes another issue with mypy where it wasn't able to identify strawberry fields.
It also now knows that fields with resolvers aren't put in the __init__ method of the class.

Page 99 of 122

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.