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

0.35.0

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

Added `strawberry.Private` type to mark fields as "private" so they don't show up in the GraphQL schema.

Example:

python
import strawberry


strawberry.type
class User:
age: strawberry.Private[int]

strawberry.field
def age_in_months(self) -> int:
return self.age * 12

0.34.2

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

Fix typo in type_resolver.py

0.34.1

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

This release fixes an issue with mypy when doing the following:

python
import strawberry


strawberry.type
class User:
name: str = strawberry.field(description="Example")

0.34.0

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

This release adds support for Apollo Tracing and support for creating Strawberry
extensions, here's how you can enable Apollo tracing:

python
from strawberry.extensions.tracing import ApolloTracingExtension

schema = strawberry.Schema(query=Query, extensions=[ApolloTracingExtension])


And here's an example of custom extension:

python
from strawberry.extensions import Extension


class MyExtension(Extension):
def get_results(self):
return {"example": "this is an example for an extension"}


schema = strawberry.Schema(query=Query, extensions=[MyExtension])

0.33.1

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

This release fixes an issue when trying to print a type
with a UNSET default value

0.33.0

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

* `UnionDefinition` has been renamed to `StrawberryUnion`
* `strawberry.union` now returns an instance of `StrawberryUnion` instead of a
dynamically generated class instance with a `_union_definition` attribute of
type `UnionDefinition`.

Page 103 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.