File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ from being executed by field visibility and access rules.
23
23
Instead a field ` Query.me ` is exposed with no field arguments that invokes ` Query.customer `
24
24
with the customer identifier pulled from the ` sub ` claim in the request's JWT.
25
25
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.
27
27
This script has access to field arguments of its annotated field (in this case none) and JWT claims through ` $jwt ` .
28
28
Thus it returns the ` sub ` claim which is then automatically mapped as a scalar value to the sole argument of
29
29
the next step in the sequence (` Query.customer(id:) ` ).
You can’t perform that action at this time.
0 commit comments