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
| Name | Description |
|---|---|
dataSource (CreateDataSourceInput!) | Arguments to create a new data source. |
updateDataSource
Updates an existing DataSource.
Type: DataSource
Arguments for updateDataSource
| Name | Description |
|---|---|
dataSource (UpdateDataSourceInput!) | Arguments to update an existing data source. |
createDevice
Creates a new Device.
Type: Device
Arguments for createDevice
| Name | Description |
|---|---|
device (CreateDeviceInput!) | Arguments to create a new device. |
updateDevice
Updates an existing Device.
Type: Device
Arguments for updateDevice
| Name | Description |
|---|---|
device (UpdateDeviceInput!) | Arguments to update an existing device. |
createDetection
Creates a new Detection.
Type: Detection
Arguments for createDetection
| Name | Description |
|---|---|
detection (CreateDetectionInput!) | Arguments to create a new detection. |
createDetections
Creates multiple new Detection.
Type: [Detection]
Arguments for createDetections
| Name | Description |
|---|---|
detections ([CreateDetectionInput!]!) | Arguments to create a list of detections. |
createEventProducer
Creates a new EventProducer.
Type: EventProducer
Arguments for createEventProducer
| Name | Description |
|---|---|
eventProducer (EventProducerInput!) | Arguments to create a new event producer. |
updateEventProducer
Updates an existing EventProducer.
Type: EventProducer
Arguments for updateEventProducer
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
event (CreateEventInput!) | Arguments to create a new event. |
updateEvent
Updates an existing Event.
Type: Event
Arguments for updateEvent
| Name | Description |
|---|---|
event (UpdateEventInput!) | Arguments to update an existing event. |
createMeasurement
Creates a new Measurement for a Sensor.
Type: Measurement
Arguments for createMeasurement
| Name | Description |
|---|---|
measurement (MeasurementInput!) | Arguments to create a new measurement. |
createPointOfInterest
Creates a new PointOfInterest.
Type: PointOfInterest
Arguments for createPointOfInterest
| Name | Description |
|---|---|
pointOfInterest (CreatePointOfInterestInput!) | Arguments to create a new point of interest. |
updatePointOfInterest
Updates an existing PointOfInterest.
Type: PointOfInterest
Arguments for updatePointOfInterest
| Name | Description |
|---|---|
pointOfInterest (UpdatePointOfInterestInput!) | Arguments to update an existing point of interest. |
createSensor
Creates a new Sensor.
Type: Sensor
Arguments for createSensor
| Name | Description |
|---|---|
sensor (SensorInput!) | Arguments to create a new sensor. |
updateSensor
Updates an existing Sensor.
Type: Sensor
Arguments for updateSensor
| Name | Description |
|---|---|
sensor (UpdateSensorInput!) | Arguments to update an existing sensor. |
createTrack
Creates a new Track.
Type: Track
Arguments for createTrack
| Name | Description |
|---|---|
track (CreateTrackInput!) | Arguments to create a new track. |
updateTrack
Updates an existing track.
Type: Track
Arguments for updateTrack
| Name | Description |
|---|---|
track (UpdateTrackInput!) | Arguments to update an existing track. |
createZone
Creates a new Zone.
Type: Zone
Arguments for createZone
| Name | Description |
|---|---|
zone (CreateZoneInput!) | Arguments to create a new zone. |
updateZone
Updates an existing zone.
Type: Zone
Arguments for updateZone
| Name | Description |
|---|---|
zone (UpdateZoneInput!) | Arguments to update an existing zone. |
uploadImage
Uploads an image.
Type: Image
Arguments for uploadImage
| Name | Description |
|---|---|
image (UploadImageInput!) | Arguments to upload an image. |