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.type
class 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!
}

Was this helpful?

Edit on Github

Newsletter 💌

Do you want to receive the latest updates on Strawberry? Subscribe to our newsletter!