Annotation Interface GraphQLPolicy


Defines GraphQL resource policy in annotated resource role (see ResourceRole). Multiple GraphQLPolicy annotations may be placed on a single method. SpecificPolicy annotation may present on multiple methods of the same class. Annotated method may have any name and return type.

Example:

 @ResourceRole(name = "My Role", code = "myRole")
 public interface MyRole {

     @GraphQLPolicy(operations = {"userInfo", "testQuery"})
     void graphQL();
 }
 
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • operations

      String[] operations
      Default:
      {}