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

0.12.0

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

0.11.0

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

Added support for optional fields with default arguments in the GraphQL schema when default arguments are passed to the resolver.

Example:
python
strawberry.type
class Query:
strawberry.field
def hello(self, info, name: str = "world") -> str:
return name


graphql
type Query {
hello(name: String = "world"): String
}

0.10.0

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

Fixed issue that was prevent usage of InitVars.
Now you can safely use InitVar to prevent fields from showing up in the schema:


python
strawberry.type
class Category:
name: str
id: InitVar[str]


strawberry.type
class Query:
strawberry.field
def category(self, info) -> Category:
return Category(name="example", id="123")

0.9.1

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

Fixed logo on PyPI

0.9.0

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

Added support for passing resolver functions

python
def resolver(root, info, par: str) -> str:
return f"hello {par}"


strawberry.type
class Query:
example: str = strawberry.field(resolver=resolver)


Also we updated some of the dependencies of the project

0.8.0

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

Added support for renaming fields. Example usage:
python
strawberry.type
class Query:
example: str = strawberry.field(name="test")

Page 118 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.