@GraphQLApi
public class TaskResource
extends Object
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TaskResource
public TaskResource()
-
Method Details
-
createTask
@Mutation
@RolesAllowed("user")
@Description("Create a new task")
public String createTask(@Name("name")
String name)
-
deleteTask
@Mutation
@RolesAllowed("user")
@Description("Delete a task (only if owned by user).")
public String deleteTask(@Name("id")
Long id)
-
showTasks
@Query
@RolesAllowed("user")
@Description("Show logged in user\'s tasks")
public String showTasks()