Skip to content

Commit cedf54a

Browse files
magicmarkclaude
andcommitted
Use trusted documents example in extensions docs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2d20946 commit cedf54a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎docs/usage/extensions.rst‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ top-level key in the request payload alongside :code:`query`, :code:`variables`,
1212
and :code:`operationName`.
1313

1414
You can use this to pass protocol extensions such as
15-
`persisted queries <https://www.apollographql.com/docs/apollo-server/performance/apq/>`_:
15+
`trusted documents <https://graphql.org/learn/security/#trusted-documents>`_:
1616

1717
.. code-block:: python
1818
@@ -26,10 +26,7 @@ You can use this to pass protocol extensions such as
2626
request = GraphQLRequest(
2727
"query { viewer { name } }",
2828
extensions={
29-
"persistedQuery": {
30-
"version": 1,
31-
"sha256Hash": "abc123...",
32-
}
29+
"x-trusted-document-id": "foo",
3330
},
3431
)
3532

0 commit comments

Comments
 (0)