Strawberry-graphql

Latest version: v0.235.0

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

Scan your dependencies

Page 114 of 122

0.20.2

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

0.20.1

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

Fix directives bugs:

- Fix autogenerated `return` argument bug

- Fix include and skip failure bug

0.20.0

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

This release improves support for permissions (it is a breaking change).
Now you will receive the source and the arguments in the `has_permission` method,
so you can run more complex permission checks. It also allows to use permissions
on fields, here's an example:


python
import strawberry

from strawberry.permission import BasePermission


class IsAdmin(BasePermission):
message = "You are not authorized"

def has_permission(self, source, info):
return source.name.lower() == "Patrick" or _is_admin(info)


strawberry.type
class User:
name: str
email: str = strawberry.field(permission_classes=[IsAdmin])


strawberry.type
class Query:
strawberry.field(permission_classes=[IsAdmin])
def user(self, info) -> str:
return User(name="Patrick", email="exampleemail.com")

0.19.1

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

This releases removes support for async resolver in django
as they causes issues when accessing the databases.

0.19.0

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

This release improves support for django and asgi integration.

It allows to use async resolvers when using django. It also changes the status
code from 400 to 200 even if there are errors this makes it possible to still
use other fields even if one raised an error.

We also moved strawberry.contrib.django to strawberry.django, so if you're using
the django view make sure you update the paths.

0.18.3

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

Fix missing support for booleans when converting arguments

Page 114 of 122

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.