Skip to content

Commit

Permalink
Improve docs for max tokens limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Nov 22, 2023
1 parent 00b77fa commit a90dea2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/extensions/max-tokens-limiter.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tags: security

# `MaxTokensLimiter`

This extension adds a validator to limit the maximum number of tokens in a GraphQL document.
This extension adds a validator to limit the maximum number of tokens in a GraphQL document sent to the server.

## Usage example:

Expand All @@ -22,6 +22,8 @@ schema = strawberry.Schema(
)
```

With the above configuration, if a client sends a query with more than 1000 tokens, the server will respond with an error message.

## API reference:

```python
Expand Down

0 comments on commit a90dea2

Please sign in to comment.