GraphQLAuth

annotation class GraphQLAuth(roles: Array<String>)

Annotation to be used on field definitions to restrict access based on the context Principal's role. If no roles are specified, any authenticated Principal will be authorized to access the annotated field.

Note that such annotated field elements should be nullable, as failure to auth will result in a null return data value!

Constructors

GraphQLAuth
Link copied to clipboard
fun GraphQLAuth(roles: Array<String> = [])

Properties

roles
Link copied to clipboard
val roles: Array<String>