updateEdgeWorker
Update an existing WASM edge worker.
updateEdgeWorker(
input: UpdateEdgeWorkerInput!
): EdgeWorker
Example
- Query
- Variables
- Response
mutation ($input: UpdateEdgeWorkerInput!) {
updateEdgeWorker(input: $input) {
active
createdAt
id
location {
operator
value
}
name
onFailure
phases
source
updatedAt
wasmBinary
}
}
{
"input": {
"edgeWorkerId": 42,
"environmentId": 42,
"location": {
"operator": "contains",
"value": "value"
},
"name": "A name",
"onFailure": "continue",
"source": "source",
"wasmBinary": "wasmBinary"
}
}
{
"data": {
"updateEdgeWorker": {
"active": true,
"createdAt": "2024-01-15T00:00:00.000Z",
"id": 42,
"location": {
"operator": "contains",
"value": "value"
},
"name": "A name",
"onFailure": "continue",
"phases": [
"client_request"
],
"source": "source",
"updatedAt": "2024-01-15T00:00:00.000Z",
"wasmBinary": "wasmBinary"
}
}
}
Arguments
updateEdgeWorker.input ● UpdateEdgeWorkerInput! non-null input common
The edge worker changes to apply.
Type
EdgeWorker object common
A WASM edge worker deployed to an environment.