Skip to content

Strawberry 0.10.0

Compare
Choose a tag to compare
@botberry botberry released this 28 May 08:38
· 3172 commits to main since this release

Fixed issue that was prevent usage of InitVars.
Now you can safely use InitVar to prevent fields from showing up in the schema:

@strawberry.type
class Category:
    name: str
    id: InitVar[str]

@strawberry.type
class Query:
    @strawberry.field
    def category(self, info) -> Category:
        return Category(name="example", id="123")