Skip to content

Commit 4a408be

Browse files
authored
Apply suggestions from code review
1 parent 12648b2 commit 4a408be

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/ROOT/pages/security/authentication.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ Extend the schema:
5252
extend schema @authentication
5353
----
5454

55-
The `operations` and `jwt` arguments can also be used when the directive is applied to a schema extension.
55+
The `operations` and `jwt` arguments can also be used when the directive is applied to a schema extension, for example:
5656

57-
// ^ should we add links or provide examples?
57+
[source, graphql, indent=0]
58+
----
59+
extend schema @authentication(operations: [UPDATE, DELETE], jwt: { roles_INCLUDES: "admin" })
60+
----
5861

5962
=== Authentication for types
6063

0 commit comments

Comments
 (0)