Skip to content

0.324.4

Latest

Choose a tag to compare

@botberry botberry released this 29 Aug 11:35
· 3 commits to main since this release
e104af8

This release fixes argument handling for operation directive resolvers.

Arguments passed to operation directives now use GraphQL's standard coercion before
your resolver runs. Directive resolvers receive Python numeric values, Strawberry
enum members and nested input objects, and values parsed by custom scalars, whether
clients use literals or variables.

When a client omits a variable, Strawberry now applies the directive argument's
default. Explicit null continues to reach nullable arguments as None.

This release was contributed by @patrick91 in #4596