API Docs
Worker Management
Soft Delete Miner

Soft Delete Miner

Soft-deletes a worker

Example

mutation softDeleteMiner {
  softDeleteMiner(input: { minerId: 12345678 }) {
    minerEdge {
      node {
        updatedAt
        createdAt
        userId
        workerName
        miningProfileName
        deleted
      }
    }
  }
}

Response

{
  "data": {
    "softDeleteMiner": {
      "minerEdge": {
        "node": {
          "updatedAt": "",
          "createdAt": "",
          "userId": ,
          "workerName": "worker1",
          "miningProfileName": "BTC",
          "deleted": true
        }
      }
    }
  }
}

Arguments

  • input (SoftDeleteMinerInput!)

The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.

type SoftDeleteMinerInput {
  clientMutationId: String
  minerId: Int!
}
  • clientMutationId (String) An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client.

  • minerId (Int!)

Type

SoftDeleteMinerPayload

The output of our softDeleteMiner mutation.

type SoftDeleteMinerPayload {
  clientMutationId: String
  miner: Miner
  query: Query
  user: User
  minerEdge(orderBy: [MinersOrderBy!] = [PRIMARY_KEY_ASC]): MinersEdge
}
Fields
  • clientMutationId (String) The exact same clientMutationId that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations.

  • miner (Miner)

  • query (Query)

  • user (User) Reads a single User that is related to this Miner.

  • minerEdge (MinersEdge) An edge for our Miner. May be used by Relay 1.

    type MinersEdge {
      cursor: Cursor
      node: Miner!
    }
    • cursor (Cursor) A cursor for use in pagination.

    • node (Miner!) The Miner at the end of the edge.

  • orderBy (MinersOrderBy!) The method to use when ordering Miner.

    enum MinersOrderBy {
      NATURAL
      ID_ASC
      ID_DESC
      USER_ID_ASC
      USER_ID_DESC
      MINING_PROFILE_NAME_ASC
      MINING_PROFILE_NAME_DESC
      PRIMARY_KEY_ASC
      PRIMARY_KEY_DESC
    }