Skip to main content

createEdgeWorker

Create and upload a new inactive WASM edge worker. Use setEdgeWorkerActive to enable it after review.

createEdgeWorker(
input: CreateEdgeWorkerInput!
): EdgeWorker

Example​

mutation ($input: CreateEdgeWorkerInput!) {
createEdgeWorker(input: $input) {
active
createdAt
id
location {
operator
value
}
name
onFailure
phases
source
updatedAt
wasmBinary
}
}

Arguments​

createEdgeWorker.input ● CreateEdgeWorkerInput! non-null input common​

The edge worker to create.

Type​

EdgeWorker object common​

A WASM edge worker deployed to an environment.