Extensions
Extensions allow you, as an application developer, to customise the GraphQL execution flow based on your needs. Strawberry provides multiple built in extensions that allow you to extend the capability of your GraphQL server.
If you canβt find what you need among the built-in extensions , you can also build your own custom extension based on a standard interface. Check out the schema extensions and field extensions guides to find out more.
Built-in extensions
-
Add Validation Rules
Add GraphQL validation rules.
validationsecurity -
Apollo Tracing
Add Apollo tracing to your GraphQL server.
tracing -
Datadog
Add Datadog tracing to your GraphQL server.
tracing -
Disable Introspection
Disable all introspection queries.
securityvalidation -
Disable Validation
Disable all query validation.
performancevalidation -
Input Mutation Extension
Automatically create Input types for mutations
QoL -
Mask Errors
Hide error messages from the client.
security -
Max Aliases Limiter
Add a validator to limit the maximum number of aliases in a GraphQL document.
security -
Max Tokens Limiter
Add a validator to limit the maximum number of tokens in a GraphQL document.
security -
Open Telemetry
Add Open Telemetry tracing to your GraphQL server.
tracing -
Parser Cache
Add in memory caching to the parsing step of query execution.
performancecachingparsing -
PyInstrument
Easily Instrument your Schema
instrumentationprofiling -
Query Depth Limiter
Add a validator to limit the query depth of GraphQL operations.
security -
Sentry Tracing
Add Sentry tracing to your GraphQL server.
tracing -
Validation Cache
Add in memory caching to the validation step of query execution.
performancecachingvalidation