Strawberry-graphql

Latest version: v0.229.1

Safety actively analyzes 629811 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 101 of 119

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`

0.36.4

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

This release adds support for using strawberry.enum as a function with MyPy,
this is now valid typed code:

python
from enum import Enum

import strawberry


class IceCreamFlavour(Enum):
VANILLA = "vanilla"
STRAWBERRY = "strawberry"
CHOCOLATE = "chocolate"


Flavour = strawberry.enum(IceCreamFlavour)

0.36.3

-------------------

Add `__str__` to `Schema` to allow printing schema sdl with `str(schema)`

0.36.2

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

Extend support for parsing isoformat datetimes,
adding a dependency on the `dateutil` library.
For example: "2020-10-12T22:00:00.000Z"
can now be parsed as a datetime with a UTC timezone.

0.36.1

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

Add `schema.introspect()` method to return introspection result of the schema.
This might be useful for tools like `apollo codegen` or `graphql-voyager` which
expect a full json representation of the schema

Page 101 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.