Strawberry-graphql

Latest version: v0.229.1

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

Scan your dependencies

Page 98 of 119

0.41.1

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

This release fixes an issue with forward types

0.41.0

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

This release adds a built-in dataloader. Example:

python
async def app():
async def idx(keys):
return keys

loader = DataLoader(load_fn=idx)

[value_a, value_b, value_c] = await asyncio.gather(
loader.load(1),
loader.load(2),
loader.load(3),
)

assert value_a == 1
assert value_b == 2
assert value_c == 3

0.40.2

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

Allow interfaces to implement other interfaces.
This may be useful if you are using the relay pattern
or if you want to model base interfaces that can be extended.

Example:
python
import strawberry


strawberry.interface
class Error:
message: str


strawberry.interface
class FieldError(Error):
message: str
field: str


strawberry.type
class PasswordTooShort(FieldError):
message: str
field: str
fix: str

Produces the following SDL:
graphql
interface Error {
message: String!
}

interface FieldError implements Error {
message: String!
field: String!
}

type PasswordTooShort implements FieldError & Error {
message: String!
field: String!
fix: String!
}

0.40.1

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

Fix mypy plugin to handle bug where the `types` argument to `strawberry.union` is passed in as a keyword argument instead of a position one.

python
MyUnion = strawberry.union(types=(TypeA, TypeB), name="MyUnion")

0.40.0

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

This release adds a new AsyncGraphQLView for django.

0.39.4

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

Improve typing for `field` and `StrawberryField`.

Page 98 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.