Skip to content

Commit

Permalink
Update extensions names
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Mar 13, 2024
1 parent 101ab96 commit 22838db
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 23 deletions.
5 changes: 3 additions & 2 deletions docs/extensions/_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ExtensionName
title: Extension Name
summary: A summary of the extension.
tags: comma,separated,list,of,tags
---
Expand All @@ -25,7 +25,8 @@ schema = strawberry.Schema(
## API reference:

```python
class ExtensionName(an_argument=None): ...
class ExtensionName(an_argument=None):
...
```

#### `an_argument: Optional[str] = None`
Expand Down
8 changes: 5 additions & 3 deletions docs/extensions/add-validation-rules.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: AddValidationRules
title: Add Validation Rules
summary: Add GraphQL validation rules.
tags: validation,security
---
Expand All @@ -20,7 +20,8 @@ from strawberry.extensions import AddValidationRules
from graphql import ValidationRule


class MyCustomRule(ValidationRule): ...
class MyCustomRule(ValidationRule):
...


schema = strawberry.Schema(
Expand All @@ -34,7 +35,8 @@ schema = strawberry.Schema(
## API reference:

```python
class AddValidationRules(validation_rules): ...
class AddValidationRules(validation_rules):
...
```

#### `validation_rules: List[Type[ASTValidationRule]]`
Expand Down
2 changes: 1 addition & 1 deletion docs/extensions/apollo-tracing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ApolloTracingExtension
title: Apollo Tracing
summary: Add Apollo tracing to your GraphQL server.
tags: tracing
---
Expand Down
2 changes: 1 addition & 1 deletion docs/extensions/datadog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: DatadogExtension
title: Datadog
summary: Add Datadog tracing to your GraphQL server.
tags: tracing
---
Expand Down
2 changes: 1 addition & 1 deletion docs/extensions/disable-validation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: DisableValidation
title: Disable Validation
summary: Disable all query validation.
tags: performance,validation
---
Expand Down
5 changes: 3 additions & 2 deletions docs/extensions/mask-errors.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: MaskErrors
title: Mask Errors
summary: Hide error messages from the client.
tags: security
---
Expand Down Expand Up @@ -28,7 +28,8 @@ schema = strawberry.Schema(
```python
class MaskErrors(
should_mask_error=default_should_mask_error, error_message="Unexpected error."
): ...
):
...
```

#### `should_mask_error: Callable[[GraphQLError], bool] = default_should_mask_error`
Expand Down
5 changes: 3 additions & 2 deletions docs/extensions/max-aliases-limiter.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: MaxAliasesLimiter
title: Max Aliases Limiter
summary:
Add a validator to limit the maximum number of aliases in a GraphQL document.
tags: security
Expand Down Expand Up @@ -27,7 +27,8 @@ schema = strawberry.Schema(
## API reference:

```python
class MaxAliasesLimiter(max_alias_count): ...
class MaxAliasesLimiter(max_alias_count):
...
```

#### `max_alias_count: int`
Expand Down
5 changes: 3 additions & 2 deletions docs/extensions/max-tokens-limiter.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: MaxTokensLimiter
title: Max Tokens Limiter
summary:
Add a validator to limit the maximum number of tokens in a GraphQL document.
tags: security
Expand Down Expand Up @@ -30,7 +30,8 @@ tokens, the server will respond with an error message.
## API reference:

```python
class MaxTokensLimiter(max_token_count): ...
class MaxTokensLimiter(max_token_count):
...
```

#### `max_token_count: int`
Expand Down
5 changes: 3 additions & 2 deletions docs/extensions/opentelemetry.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: OpenTelemetryExtension
title: Open Telemetry
summary: Add Open Telemetry tracing to your GraphQL server.
tags: tracing
---
Expand Down Expand Up @@ -55,7 +55,8 @@ schema = strawberry.Schema(
## API reference:

```python
class OpenTelemetryExtension(arg_filter=None): ...
class OpenTelemetryExtension(arg_filter=None):
...
```

#### `arg_filter: Optional[ArgFilter]`
Expand Down
5 changes: 3 additions & 2 deletions docs/extensions/parser-cache.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ParserCache
title: Parser Cache
summary: Add in memory caching to the parsing step of query execution.
tags: performance,caching,parsing
---
Expand All @@ -26,7 +26,8 @@ schema = strawberry.Schema(
## API reference:

```python
class ParserCache(maxsize=None): ...
class ParserCache(maxsize=None):
...
```

#### `maxsize: Optional[int] = None`
Expand Down
5 changes: 3 additions & 2 deletions docs/extensions/query-depth-limiter.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: QueryDepthLimiter
title: Query Depth Limiter
summary: Add a validator to limit the query depth of GraphQL operations.
tags: security
---
Expand All @@ -25,7 +25,8 @@ schema = strawberry.Schema(
## API reference:

```python
class QueryDepthLimiter(max_depth, callback=None, should_ignore=None): ...
class QueryDepthLimiter(max_depth, callback=None, should_ignore=None):
...
```

#### `max_depth: int`
Expand Down
2 changes: 1 addition & 1 deletion docs/extensions/sentry-tracing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: SentryTracingExtension
title: Sentry Tracing
summary: Add Sentry tracing to your GraphQL server.
tags: tracing
---
Expand Down
5 changes: 3 additions & 2 deletions docs/extensions/validation-cache.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ValidationCache
title: Validation Cache
summary: Add in memory caching to the validation step of query execution.
tags: performance,caching,validation
---
Expand All @@ -26,7 +26,8 @@ schema = strawberry.Schema(
## API reference:

```python
class ValidationCache(maxsize=None): ...
class ValidationCache(maxsize=None):
...
```

#### `maxsize: Optional[int] = None`
Expand Down

0 comments on commit 22838db

Please sign in to comment.