Skip to content

Commit 819d747

Browse files
committed
cleanup
1 parent cb2070c commit 819d747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protection/jwt-claims/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ from being executed by field visibility and access rules.
2323
Instead a field `Query.me` is exposed with no field arguments that invokes `Query.customer`
2424
with the customer identifier pulled from the `sub` claim in the request's JWT.
2525

26-
This is implemented by an intermediate field (`Query._myid`) that is annotated with `@value` using an ECMAScript.
26+
This is implemented using `@sequence` with the first step an intermediate field (`Query._myid`) that is annotated with `@value` using an ECMAScript.
2727
This script has access to field arguments of its annotated field (in this case none) and JWT claims through `$jwt`.
2828
Thus it returns the `sub` claim which is then automatically mapped as a scalar value to the sole argument of
2929
the next step in the sequence (`Query.customer(id:)`).

0 commit comments

Comments
 (0)