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

0.44.0

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

Creation of a `[debug-server]` extra, which is required to get going quickly with this project!


pip install strawberry-graphql


Will now install the primary portion of of the framework, allowing you to build your GraphQL
schema using the dataclasses pattern.

To get going quickly, you can install `[debug-server]` which brings along a server which allows
you to develop your API dynamically, assuming your schema is defined in the `app` module:


pip install 'strawberry-graphql[debug-server]'
strawberry server app


Typically, in a production environment, you'd want to bring your own server :)

0.43.2

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

This release fixes an issue when using unions inside generic types, this is now
supported:


python
strawberry.type
class Dog:
name: str


strawberry.type
class Cat:
name: str


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


strawberry.type
class Query:
connection: Connection[Union[Dog, Cat]]

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)

Page 96 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.