API Stability Short-Term

The unassignTasks() GraphQL mutation may be used to unassign node tasks. It returns the set of assigned tasks after the unassign operation has completed.

For more information on common node tasks, see the LogScale Logical Architecture page in the Training section.

Syntax

Below is the syntax for the unassignTasks() mutation field:

graphql
unassignTasks(
     nodeID: integer!
     tasks: [NodeTaskEnum!]!
   ): [NodeTaskEnum!]!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  unassignTasks(
    nodeID: 1, 
    tasks: [storage, query]
  )
}
Example Responses
Show:
json
{
  "data": {
    "unassignTasks": [
      "digest"
    ]
  }
}

Given and Returned Datatypes

For the given and returned datatype, NodeTaskEnum, it's an enumerated list: storage, digest, or query.