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

0.37.5

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

This release improves how we handle enum values when returning lists of enums.

0.37.4

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

This releases adds a workaround to prevent mypy from crashing in specific occasions

0.37.3

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

This release fixes an issue preventing to return enums in lists

0.37.2

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

This release improves support for strawberry.enums when type checking with mypy.

0.37.1

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

Fix ASGI view to call `get_context` during a websocket request

0.37.0

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

Add support for adding a description to field arguments using the [`Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated) type:

python
from typing import Annotated


strawberry.type
class Query:
strawberry.field
def user_by_id(
id: Annotated[str, strawberry.argument(description="The ID of the user")]
) -> User: ...


which results in the following schema:

graphql
type Query {
userById(
"""The ID of the user"""
id: String
): User!
}


**Note:** if you are not using Python v3.9 or greater you will need to import `Annotated` from `typing_extensions`

Page 103 of 122

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.