Skip to content

Commit 59b7b8e

Browse files
authored
Add a dedicated extensions section to the docs (#3931)
* Add a dedicated extensions section to the docs * Fix typos
1 parent 1a63f50 commit 59b7b8e

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

docs/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ title: Strawberry docs
4141
- [Schema codegen](./codegen/schema-codegen.md)
4242
- [Query codegen](./codegen/query-codegen.md)
4343

44-
## [Extensions](./extensions)
45-
4644
## Guides
4745

4846
- [Accessing parent data](./guides/accessing-parent-data.md)
@@ -52,8 +50,6 @@ title: Strawberry docs
5250
- [Federation](./guides/federation.md)
5351
- [Federation V1](./guides/federation-v1.md)
5452
- [Relay](./guides/relay.md)
55-
- [Custom extensions](./guides/custom-extensions.md)
56-
- [Field extensions](./guides/field-extensions.md)
5753
- [File upload](./guides/file-upload.md)
5854
- [Pagination](./guides/pagination/overview.md)
5955
- [Implementing Offset Pagination](./guides/pagination/offset-based.md)
@@ -65,6 +61,12 @@ title: Strawberry docs
6561
- [Schema export](./guides/schema-export.md)
6662
- [Convert to dictionary](./guides/convert-to-dictionary.md)
6763

64+
## Extensions
65+
66+
- [Introduction](./extensions)
67+
- [Schema extensions](./guides/custom-extensions.md)
68+
- [Field extensions](./guides/field-extensions.md)
69+
6870
## Editor integration
6971

7072
- [Mypy](./editors/mypy.md)

docs/extensions.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ title: Extensions
66

77
Extensions allow you, as an application developer, to customise the GraphQL
88
execution flow based on your needs. Strawberry provides multiple built in
9-
extensions that allow you extend the capability of your GraphQL server.
9+
extensions that allow you to extend the capability of your GraphQL server.
1010

11-
If you can't find what you need here you can also build your own custom
12-
extension based on a standard interface. More details
13-
[here](/docs/guides/custom-extensions).
11+
If you can't find what you need among the
12+
[built-in extensions](#built-in-extensions), you can also build your own custom
13+
extension based on a standard interface. Check out the
14+
[schema extensions](./guides/custom-extensions.md) and
15+
[field extensions](./guides/field-extensions.md) guides to find out more.
16+
17+
## Built-in extensions
1418

1519
<ExtensionsList />

docs/guides/custom-extensions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
title: Custom extensions
2+
title: Schema extensions
33
---
44

5-
# Custom extensions
5+
# Schema extensions
66

7-
Strawberry provides support for adding extensions. Extensions can be used to
8-
hook into different parts of the GraphQL execution and to provide additional
9-
results to the GraphQL response.
7+
Strawberry provides support for adding extensions to your schema. Schema
8+
extensions can be used to hook into different parts of the GraphQL execution and
9+
to provide additional results to the GraphQL response.
1010

11-
To create a custom extensions you can use extend from our `SchemaExtension` base
11+
To create a custom extension you can extend from our `SchemaExtension` base
1212
class:
1313

1414
```python

0 commit comments

Comments
 (0)