Skip to content

Mutation

About mutations

Every GraphQL schema has a root type for both queries and mutations. The Mutation type GraphQL operations that change data on the server. It is analogous to performing HTTP verbs such as POST, PATCH, and DELETE.

createDataSource

Creates a new DataSource.

Type: DataSource

Arguments for createDataSource

NameDescription
dataSource (CreateDataSourceInput!)Arguments to create a new data source.

updateDataSource

Updates an existing DataSource.

Type: DataSource

Arguments for updateDataSource

NameDescription
dataSource (UpdateDataSourceInput!)Arguments to update an existing data source.

createDevice

Creates a new Device.

Type: Device

Arguments for createDevice

NameDescription
device (CreateDeviceInput!)Arguments to create a new device.

updateDevice

Updates an existing Device.

Type: Device

Arguments for updateDevice

NameDescription
device (UpdateDeviceInput!)Arguments to update an existing device.

createDetection

Creates a new Detection.

Type: Detection

Arguments for createDetection

NameDescription
detection (CreateDetectionInput!)Arguments to create a new detection.

createDetections

Creates multiple new Detection.

Type: [Detection]

Arguments for createDetections

NameDescription
detections ([CreateDetectionInput!]!)Arguments to create a list of detections.

createEventProducer

Creates a new EventProducer.

Type: EventProducer

Arguments for createEventProducer

NameDescription
eventProducer (EventProducerInput!)Arguments to create a new event producer.

updateEventProducer

Updates an existing EventProducer.

Type: EventProducer

Arguments for updateEventProducer

NameDescription
eventProducer (UpdateEventProducerInput!)Arguments to update an existing event producer.

createEvent

Creates a new Event. This allows for the creation of custom events within the Worlds system.

Type: Event

Arguments for createEvent

NameDescription
event (CreateEventInput!)Arguments to create a new event.

updateEvent

Updates an existing Event.

Type: Event

Arguments for updateEvent

NameDescription
event (UpdateEventInput!)Arguments to update an existing event.

createMeasurement

Creates a new Measurement for a Sensor.

Type: Measurement

Arguments for createMeasurement

NameDescription
measurement (MeasurementInput!)Arguments to create a new measurement.

createPointOfInterest

Creates a new PointOfInterest.

Type: PointOfInterest

Arguments for createPointOfInterest

NameDescription
pointOfInterest (CreatePointOfInterestInput!)Arguments to create a new point of interest.

updatePointOfInterest

Updates an existing PointOfInterest.

Type: PointOfInterest

Arguments for updatePointOfInterest

NameDescription
pointOfInterest (UpdatePointOfInterestInput!)Arguments to update an existing point of interest.

createSensor

Creates a new Sensor.

Type: Sensor

Arguments for createSensor

NameDescription
sensor (SensorInput!)Arguments to create a new sensor.

updateSensor

Updates an existing Sensor.

Type: Sensor

Arguments for updateSensor

NameDescription
sensor (UpdateSensorInput!)Arguments to update an existing sensor.

createTrack

Creates a new Track.

Type: Track

Arguments for createTrack

NameDescription
track (CreateTrackInput!)Arguments to create a new track.

updateTrack

Updates an existing track.

Type: Track

Arguments for updateTrack

NameDescription
track (UpdateTrackInput!)Arguments to update an existing track.