Bump strawberry-graphql[fastapi] from 0.220.0 to 0.222.0
Bumps strawberry-graphql[fastapi] from 0.220.0 to 0.222.0.
Release notes
Sourced from strawberry-graphql[fastapi]'s releases.
🍓 0.222.0This release adds support for Apollo Federation v2.7 which includes the
@authenticated
,@requiresScopes
,@policy
directives, as well as thelabel
argument for@override
. As usual, we have first class support for them in thestrawberry.federation
namespace, here's an example:from strawberry.federation.schema_directives import Override @strawberry.federation.type( authenticated=True, policy=[["client", "poweruser"], ["admin"]], requires_scopes=[["client", "poweruser"], ["admin"]], ) class Product: upc: str = strawberry.federation.field( override=Override(override_from="mySubGraph", label="percent(1)") )
Releases contributed by
@TygerTaco
via #3420
🍓 0.221.1This release properly allows passing one argument to the
Info
class.This is now fully supported:
import strawberry from typing import TypedDict class Context(TypedDict): user_id: str @strawberry.type class Query: @strawberry.field def info(self, info: strawberry.Info[Context]) -> str: return info.context["user_id"]
Releases contributed by
@patrick91
via #3419
🍓 0.221.0This release improves the
Info
type, by adding support for default TypeVars and by exporting it from the main module. This makes it easier to useInfo
in your own code, without having to import it fromstrawberry.types.info
.
... (truncated)
Changelog
Sourced from strawberry-graphql[fastapi]'s changelog.
0.222.0 - 2024-03-27
This release adds support for Apollo Federation v2.7 which includes the
@authenticated
,@requiresScopes
,@policy
directives, as well as thelabel
argument for@override
. As usual, we have first class support for them in thestrawberry.federation
namespace, here's an example:from strawberry.federation.schema_directives import Override @strawberry.federation.type( authenticated=True, policy=[["client", "poweruser"], ["admin"]], requires_scopes=[["client", "poweruser"], ["admin"]], ) class Product: upc: str = strawberry.federation.field( override=Override(override_from="mySubGraph", label="percent(1)") )
Contributed by Tyger Taco via [PR #3420](strawberry-graphql/strawberry#3420)
0.221.1 - 2024-03-21
This release properly allows passing one argument to the
Info
class.This is now fully supported:
import strawberry from typing import TypedDict class Context(TypedDict): user_id: str @strawberry.type class Query: @strawberry.field def info(self, info: strawberry.Info[Context]) -> str: return info.context["user_id"]
Contributed by Patrick Arminio via [PR #3419](strawberry-graphql/strawberry#3419)
... (truncated)
Commits
-
9ef6690
Release🍓 0.222.0 -
ac20ea8
Support Federation Spec 2.7 (#3420) -
ec4cf15
Release🍓 0.221.1 -
2914950
Fix info by adding a custom__class_getitem__
(#3419) -
dbf74bb
Bump tweet action -
569240e
Release🍓 0.221.0 -
f7be08b
ImproveInfo
(#3418) -
22838db
Update extensions names -
101ab96
Correct heading level for "The Input Mutation Extension" (#3406) -
b3368c8
Link production website docs preview (#3405) - See full diff in compare view