This release changes an internal implementation for FastAPI's
GraphQL router. This should reduce overhead when using the context,
and it shouldn't affect your code.
🍓 0.138.0
This release adds support for generic in arguments, see the following example:
T = TypeVar('T')
@​strawberry.type
class Node(Generic[T]):
@​strawberry.field
def data(self, arg: T) -> T: # arg is also generic
return arg
🍓 0.137.1
Allowed CustomScalar | None syntax for python >= 3.10.
🍓 0.137.0
This release fixes errors when using Union-of-lazy-types
🍓 0.136.0
This release refactors the chalice integration in order to keep it consistent with
the other integrations.
Deprecation:
Passing render_graphiql is now deprecated, please use graphiql instead.
New features:
You can now return a custom status by using info.context["response"].status_code = 418
You can enabled/disable queries via get using allow_queries_via_get (defaults to True)
Changes:
Trying to access /graphql via a browser and with graphiql set to False will return a 404.
🍓 0.135.0
This release adds a new MaskErrors extension that can be used to hide error
messages from the client to prevent exposing sensitive details. By default it
masks all errors raised in any field resolver.
import strawberry
from strawberry.extensions import MaskErrors
This release changes an internal implementation for FastAPI's
GraphQL router. This should reduce overhead when using the context,
and it shouldn't affect your code.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps strawberry-graphql from 0.133.5 to 0.138.1.
Release notes
Sourced from strawberry-graphql's releases.
... (truncated)
Changelog
Sourced from strawberry-graphql's changelog.
... (truncated)
Commits
9120fdd
Release 🍓 0.138.1ac3339e
Make Websocket context_getter dependency async (#2278)f949b4c
Release 🍓 0.138.03488dae
Type definitions resolve generic inputs. (#2293)609ebc7
Fix codea223af4
Release 🍓 0.137.1d394c39
allowed 'CustomScalar | None' syntax for python >= 3.10 (#2279)7af902d
[pre-commit.ci] pre-commit autoupdate (#2280)09e5eb4
Use older version of sanic-testing for nowf5d5a2c
Remove types-setuptools from dependeciesDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)