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 {
7575
7676 @Override
7777 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 ();
7979
8080 //
8181 // 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 {
7575
7676 @Override
7777 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 ();
7979
8080 //
8181 // 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