Mutations

circle-exclamation

geoObjectCreate

Creates a new geo object.

geoObjectCreate(
    input: GeoObjectCreateInput!
  ): GeoObjectPayload

Arguments

Name
Type
Description

input

GeoObjectCreateInput!

The input fields for creating the geo object.

Input types:

chevron-rightGeoObjectCreateInputhashtag

Input for creating a new geo object.

Field
Type
Description

organizationId

ID!

The organization that will own the geo object.

typeId

ID!

The geo object type ID.

title

String!

The geo object display name.

geojsonData

GeoJSON!

The GeoJSON geometry.

customFields

The custom field values.

chevron-rightCustomFieldsPatchInputhashtag

Input for updating custom field values using a patch model.

Field
Type
Description

set

JSON

Fields to set or update as a key-value map.

unset

[Code!]

Field codes to remove.

Output types:

chevron-rightGeoObjectPayloadhashtag

The result of a geo object mutation.

Field
Type
Description

geoObject

The created or updated geo object.

chevron-rightGeoObject (entity)hashtag

A geographic object such as a geofence, point of interest, or route.

Implements: Node, Titled, Customizable, Versioned

Field
Type
Description

id

ID!

A globally unique identifier. This ID is opaque and should not be parsed by clients.

version

Int!

The version number for optimistic locking. Incremented on each update. Must be provided in update/delete mutations to prevent lost updates.

title

String!

The human-readable display name.

organization

The organization that owns this geo object.

type

The geo object type classification.

geojsonData

GeoJSON!

The geographic shape of this object as GeoJSON geometry. This is an alias for the geojson_data custom field.

customFields

JSON!

Custom field values as a key-value map. Keys are CustomFieldDefinition codes.

containsPoints

Checks if the given points are contained within this geo object's geometry. Returns the containment status for each point. Only applicable to Polygon and MultiPolygon geometries.


geoObjectUpdate

Updates an existing geo object.

Arguments

Name
Type
Description

input

GeoObjectUpdateInput!

The input fields for updating the geo object.

Input types:

chevron-rightGeoObjectUpdateInputhashtag

Input for updating an existing geo object.

Field
Type
Description

id

ID!

The geo object ID to update.

version

Int!

The current version for optimistic locking.

title

String

The new display name.

geojsonData

GeoJSON

The new geometry.

customFields

The custom field changes.

chevron-rightCustomFieldsPatchInputhashtag

Input for updating custom field values using a patch model.

Field
Type
Description

set

JSON

Fields to set or update as a key-value map.

unset

[Code!]

Field codes to remove.

Output types:

chevron-rightGeoObjectPayloadhashtag

The result of a geo object mutation.

Field
Type
Description

geoObject

The created or updated geo object.

chevron-rightGeoObject (entity)hashtag

A geographic object such as a geofence, point of interest, or route.

Implements: Node, Titled, Customizable, Versioned

Field
Type
Description

id

ID!

A globally unique identifier. This ID is opaque and should not be parsed by clients.

version

Int!

The version number for optimistic locking. Incremented on each update. Must be provided in update/delete mutations to prevent lost updates.

title

String!

The human-readable display name.

organization

The organization that owns this geo object.

type

The geo object type classification.

geojsonData

GeoJSON!

The geographic shape of this object as GeoJSON geometry. This is an alias for the geojson_data custom field.

customFields

JSON!

Custom field values as a key-value map. Keys are CustomFieldDefinition codes.

containsPoints

Checks if the given points are contained within this geo object's geometry. Returns the containment status for each point. Only applicable to Polygon and MultiPolygon geometries.


geoObjectDelete

Deletes a geo object.

Arguments

Name
Type
Description

input

GeoObjectDeleteInput!

The input fields for deleting the geo object.

Input types:

chevron-rightGeoObjectDeleteInputhashtag

Input for deleting a geo object.

Field
Type
Description

id

ID!

The geo object ID to delete.

version

Int!

The current version for optimistic locking.

Output types:

chevron-rightDeletePayloadhashtag

The result of a delete mutation.

Field
Type
Description

deletedId

ID!

The ID of the deleted entity.


geoObjectTypeCreate

Creates a new geo object type.

Arguments

Name
Type
Description

input

GeoObjectTypeCreateInput!

The input fields for creating the geo object type.

Input types:

chevron-rightGeoObjectTypeCreateInputhashtag

Input for creating a geo object type.

Field
Type
Description

organizationId

ID!

The organization that will own the item.

code

Code!

The machine-readable code.

title

String!

The display name.

order

Int

The display order.

meta

The display properties.

chevron-rightCatalogItemMetaInputhashtag

Display properties for catalog items.

Field
Type
Description

description

String

The description.

hidden

Boolean

Whether the item is hidden from regular UI lists.

textColor

HexColorCode

The text color for UI display.

backgroundColor

HexColorCode

The background color for UI display.

icon

String

A relative URL to the icon.

Output types:

chevron-rightGeoObjectTypePayloadhashtag

The result of a geo object type mutation.

Field
Type
Description

geoObjectType

The created or updated geo object type.

chevron-rightGeoObjectType (entity)hashtag

A classification type for geographic objects.

Implements: CatalogItem, Node, Versioned, Titled

Field
Type
Description

id

ID!

A globally unique identifier.

version

Int!

The version number for optimistic locking.

title

String!

The human-readable display name. Can be localized.

code

Code!

A machine-readable code, unique within the catalog scope.

order

Int!

The display order within the same level or category.

catalog

The catalog this item belongs to.

organization

The organization that owns this item. Null for system items.

meta

Metadata about this item including description, origin, and display properties.

customFieldDefinitions

Custom field definitions specific to this geo object type, ordered by display order.


geoObjectTypeUpdate

Updates a geo object type.

Arguments

Name
Type
Description

input

GeoObjectTypeUpdateInput!

The input fields for updating the geo object type.

Input types:

chevron-rightGeoObjectTypeUpdateInputhashtag

Input for updating a geo object type.

Field
Type
Description

id

ID!

The item ID to update.

version

Int!

The current version for optimistic locking.

title

String

The new display name.

order

Int

The new display order.

meta

The display properties.

chevron-rightCatalogItemMetaInputhashtag

Display properties for catalog items.

Field
Type
Description

description

String

The description.

hidden

Boolean

Whether the item is hidden from regular UI lists.

textColor

HexColorCode

The text color for UI display.

backgroundColor

HexColorCode

The background color for UI display.

icon

String

A relative URL to the icon.

Output types:

chevron-rightGeoObjectTypePayloadhashtag

The result of a geo object type mutation.

Field
Type
Description

geoObjectType

The created or updated geo object type.

chevron-rightGeoObjectType (entity)hashtag

A classification type for geographic objects.

Implements: CatalogItem, Node, Versioned, Titled

Field
Type
Description

id

ID!

A globally unique identifier.

version

Int!

The version number for optimistic locking.

title

String!

The human-readable display name. Can be localized.

code

Code!

A machine-readable code, unique within the catalog scope.

order

Int!

The display order within the same level or category.

catalog

The catalog this item belongs to.

organization

The organization that owns this item. Null for system items.

meta

Metadata about this item including description, origin, and display properties.

customFieldDefinitions

Custom field definitions specific to this geo object type, ordered by display order.


geoObjectTypeDelete

Deletes a geo object type.

Arguments

Name
Type
Description

input

CatalogItemDeleteInput!

The input fields for deleting the geo object type.

Input types:

chevron-rightCatalogItemDeleteInputhashtag

Input for deleting a catalog item.

Field
Type
Description

id

ID!

The catalog item ID to delete.

version

Int!

The current version for optimistic locking.

Output types:

chevron-rightDeletePayloadhashtag

The result of a delete mutation.

Field
Type
Description

deletedId

ID!

The ID of the deleted entity.


Last updated

Was this helpful?