Skip to content

Strawberry 0.11.0

Compare
Choose a tag to compare
@botberry botberry released this 07 Jun 21:58
· 3160 commits to main since this release

Added support for optional fields with default arguments in the GraphQL schema when default arguments are passed to the resolver.

Example:

@strawberry.type
class Query:
   @strawberry.field
   def hello(self, info, name: str = "world") -> str:
       return name
type Query {
    hello(name: String = "world"): String
}