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!
}
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 sameclientMutationId
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 singleUser
that is related to thisMiner
. -
minerEdge
(MinersEdge) An edge for ourMiner
. May be used by Relay 1.type MinersEdge { cursor: Cursor node: Miner! }
-
orderBy
(MinersOrderBy!) The method to use when orderingMiner
.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 }