File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
versioned_docs/version-v22 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ class AuthorisationDirective implements SchemaDirectiveWiring {
75
75
76
76
@Override
77
77
public GraphQLFieldDefinition onField (SchemaDirectiveWiringEnvironment <GraphQLFieldDefinition > environment ) {
78
- String targetAuthRole = (String ) environment .getDirective ().getArgument ("role" ).getArgumentValue ().getValue ();
78
+ String targetAuthRole = (String ) environment .getAppliedDirective ().getArgument ("role" ).getArgumentValue ().getValue ();
79
79
80
80
//
81
81
// build a data fetcher that first checks authorisation roles before then calling the original data fetcher
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ class AuthorisationDirective implements SchemaDirectiveWiring {
75
75
76
76
@Override
77
77
public GraphQLFieldDefinition onField (SchemaDirectiveWiringEnvironment <GraphQLFieldDefinition > environment ) {
78
- String targetAuthRole = (String ) environment .getDirective ().getArgument ("role" ).getArgumentValue ().getValue ();
78
+ String targetAuthRole = (String ) environment .getAppliedDirective ().getArgument ("role" ).getArgumentValue ().getValue ();
79
79
80
80
//
81
81
// build a data fetcher that first checks authorisation roles before then calling the original data fetcher
You can’t perform that action at this time.
0 commit comments