Schema Configurations
Strawberry allows to customise how the schema is generated by passing configurations. At the moment we only allow to disable auto camel casing of fields and arguments names.
To customise the schema you can create an instance of StrawberryConfig
, as shown in the
example below:
import strawberry
from strawberry.schema.config import StrawberryConfig
@strawberry.typeclass Query: example_field: str
schema = strawberry.Schema( query=Query, config=StrawberryConfig(auto_camel_case=False))
In this case we are disabling the auto camel casing feature, so your output schema will look like this:
type Query { example_field: String!}