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

0.26.2

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

Fixes a bug when using unions and lists together

0.26.1

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

Argument conversion doesn't populate missing args with defaults.
python
strawberry.field
def hello(self, null_or_unset: Optional[str] = UNSET, nullable: str = None) -> None:
pass

0.26.0

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

This releases adds experimental support for apollo federation.

Here's an example:

python
import strawberry


strawberry.federation.type(extend=True, keys=["id"])
class Campaign:
id: strawberry.ID = strawberry.federation.field(external=True)

strawberry.field
def title(self) -> str:
return f"Title for {self.id}"

classmethod
def resolve_reference(cls, id):
return Campaign(id)


strawberry.federation.type(extend=True)
class Query:
strawberry.field
def strawberry(self) -> str:
return "🍓"


schema = strawberry.federation.Schema(query=Query, types=[Campaign])

0.25.6

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

Default values make input arguments nullable when the default is None.
python
class Query:
strawberry.field
def hello(self, i: int = 0, s: str = None) -> str:
return s

graphql
type Query {
hello(i: Int! = 0, s: String): String!
}

0.25.5

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

Added sentinel value for input parameters that aren't sent by the clients.
It checks for when a field is unset.

0.25.4

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

Support for `default_value` on inputs and arguments.

Usage:
python
class MyInput:
s: Optional[str]
i: int = 0

graphql
input MyInput {
s: String
i: Int! = 0
}

Page 108 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.