Strawberry-graphql

Latest version: v0.229.1

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

Scan your dependencies

Page 111 of 119

0.21.0

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

Added a Flask view that allows you to query the schema and interact with it via GraphiQL.

Usage:

python
app.py
from strawberry.flask.views import GraphQLView
from your_project.schema import schema

app = Flask(__name__)

app.add_url_rule(
"/graphql", view_func=GraphQLView.as_view("graphql_view", schema=schema)
)

if __name__ == "__main__":
app.run(debug=True)

0.20.3

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

Improve datetime, date and time types conversion. Removes aniso dependency
and also adds support for python types, so now we can do use python datetime's types
instead of our custom scalar types.

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.

Page 111 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.