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

0.67.0

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

Add ability to specific the graphql name for a resolver argument. E.g.,

python
from typing import Annotated
import strawberry


strawberry.input
class HelloInput:
name: str = "world"


strawberry.type
class Query:
strawberry.field
def hello(
self, input_: Annotated[HelloInput, strawberry.argument(name="input")]
) -> str:
return f"Hi {input_.name}"


Contributed by [Daniel Bowring](https://github.com/dbowring) [PR #1024](https://github.com/strawberry-graphql/strawberry/pull/1024/)

0.66.0

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

This release fixes a bug that was preventing the use of an enum member as the
default value for an argument.

For example:

python
strawberry.enum
class IceCreamFlavour(Enum):
VANILLA = "vanilla"
STRAWBERRY = "strawberry"
CHOCOLATE = "chocolate"
PISTACHIO = "pistachio"


strawberry.mutation
def create_flavour(self, flavour: IceCreamFlavour = IceCreamFlavour.STRAWBERRY) -> str:
return f"{flavour.name}"


Contributed by [Jonathan Kim](https://github.com/jkimbo) [PR #1015](https://github.com/strawberry-graphql/strawberry/pull/1015/)

0.65.5

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

This release reverts the changes made in v0.65.4 that caused an issue leading to
circular imports when using the `strawberry-graphql-django` extension package.

Contributed by [Lauri Hintsala](https://github.com/la4de) [PR #1019](https://github.com/strawberry-graphql/strawberry/pull/1019/)

0.65.4

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

This release fixes the IDE integration where package `strawberry.django` could not be find by some editors like vscode.

Contributed by [Lauri Hintsala](https://github.com/la4de) [PR #994](https://github.com/strawberry-graphql/strawberry/pull/994/)

0.65.3

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

This release fixes the ASGI subscription implementation by handling disconnecting clients properly.

Additionally, the ASGI implementation has been internally refactored to match the AIOHTTP implementation.

Contributed by [Jonathan Ehwald](https://github.com/DoctorJohn) [PR #1002](https://github.com/strawberry-graphql/strawberry/pull/1002/)

0.65.2

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

This release fixes a bug in the subscription implementations that prevented clients
from selecting one of multiple subscription operations from a query. Client sent
messages like the following one are now handled as expected.

json
{
"type": "GQL_START",
"id": "DEMO",
"payload": {
"query": "subscription Sub1 { sub1 } subscription Sub2 { sub2 }",
"operationName": "Sub2"
}
}


Contributed by [Jonathan Ehwald](https://github.com/DoctorJohn) [PR #1000](https://github.com/strawberry-graphql/strawberry/pull/1000/)

Page 83 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.