Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
ReferenceBeta

Tags

Complete reference for tags. Create and manage flexible labels for classifying assets, geo objects, and other entities.

Tag management for flexible entity classification.

Queries

tags

Lists tags in the caller's workspace.

tags(
    filter: TagFilter
    first: Int
    after: String
    last: Int
    before: String
    orderBy: CatalogItemOrder = { field: TITLE, direction: ASC }
  ): TagConnection!

Arguments

Name
Type
Description

filter

TagFilter

Filtering options for the returned tags.

first

Int

The first n elements from the paginated list.

after

String

The elements that come after the specified cursor.

last

Int

The last n elements from the paginated list.

before

String

The elements that come before the specified cursor.

orderBy

CatalogItemOrder

The ordering options for the returned tags.

Input types:

TagFilter

Filtering options for tags.

Field
Type
Description

titleContains

String

Partial match on title (case-insensitive contains).

CatalogItemOrder

Ordering options for catalog items.

Field
Type
Description

field

The field to order by.

direction

The direction to order.

Output types:

TagConnection

A paginated list of Tag items.

Implements: Connection

Field
Type
Description

edges

A list of edges.

nodes

[Tag!]!

A list of nodes in the connection (without edge metadata).

pageInfo

Information about the current page.

total

The total count of items matching the filter.


Mutations

tagCreate

Creates a new tag.

Arguments

Name
Type
Description

input

TagCreateInput!

The input fields for creating the tag.

Input types:

TagCreateInput

Input for creating a tag.

Field
Type
Description

code

The machine-readable code. Auto-generated from title if omitted.

title

String!

The display name.

order

Int

The display order. Auto-calculated as last position if omitted.

entityTypeIds

[ID!]

The entity types this tag can be applied to. Empty means universal.

meta

The display properties.

CatalogItemMetaInput

Display properties for catalog items.

Field
Type
Description

description

String

The description.

hidden

Boolean

Whether the item is hidden from regular UI lists.

Output types:

TagPayload

The result of a tag mutation.

Field
Type
Description

tag

The created or updated tag.

Tag (entity)

A tag for labeling and categorizing entities.

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

A machine-readable code, unique within the catalog for a given workspace. A workspace item may reuse the code of the system item it overrides.

order

Int!

The display order within the same level or category.

catalog

The catalog this item belongs to.

workspace

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

meta

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

entityTypes

The entity types this tag can be applied to. Empty means the tag is universal.


tagUpdate

Updates a tag.

Arguments

Name
Type
Description

input

TagUpdateInput!

The input fields for updating the tag.

Input types:

TagUpdateInput

Input for updating a tag.

Field
Type
Description

id

ID!

The item ID to update.

version

Int

The current version for optimistic locking. If omitted, auto-increments without conflict check.

title

String

The new display name.

order

Int

The new display order.

entityTypeIds

[ID!]

Replace entity types. Null means no change, empty means universal.

meta

The display properties.

CatalogItemMetaInput

Display properties for catalog items.

Field
Type
Description

description

String

The description.

hidden

Boolean

Whether the item is hidden from regular UI lists.

Output types:

TagPayload

The result of a tag mutation.

Field
Type
Description

tag

The created or updated tag.

Tag (entity)

A tag for labeling and categorizing entities.

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

A machine-readable code, unique within the catalog for a given workspace. A workspace item may reuse the code of the system item it overrides.

order

Int!

The display order within the same level or category.

catalog

The catalog this item belongs to.

workspace

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

meta

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

entityTypes

The entity types this tag can be applied to. Empty means the tag is universal.


tagDelete

Deletes a tag.

Refused with IN_USE while another live entity points at it through one of its own fields, custom-field values and field definitions included; the error's blockers name the first five of them, and hasMoreBlockers says whether it left any out.

Arguments

Name
Type
Description

input

CatalogItemDeleteInput!

The input fields for deleting the tag.

Input types:

CatalogItemDeleteInput

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. If omitted, auto-increments without conflict check.

Output types:

DeletePayload

The result of a delete mutation.

Field
Type
Description

deletedId

ID!

The ID of the deleted entity.


Objects

Tag

A tag for labeling and categorizing entities.

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

A machine-readable code, unique within the catalog for a given workspace. A workspace item may reuse the code of the system item it overrides.

order

Int!

The display order within the same level or category.

catalog

The catalog this item belongs to.

workspace

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

meta

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

entityTypes

The entity types this tag can be applied to. Empty means the tag is universal.


TagPayload

The result of a tag mutation.

Field
Type
Description

tag

The created or updated tag.


Inputs

TagFilter

Filtering options for tags.

Field
Type
Description

titleContains

String

Partial match on title (case-insensitive contains).


TagCreateInput

Input for creating a tag.

Field
Type
Description

code

The machine-readable code. Auto-generated from title if omitted.

title

String!

The display name.

order

Int

The display order. Auto-calculated as last position if omitted.

entityTypeIds

[ID!]

The entity types this tag can be applied to. Empty means universal.

meta

The display properties.


TagUpdateInput

Input for updating a tag.

Field
Type
Description

id

ID!

The item ID to update.

version

Int

The current version for optimistic locking. If omitted, auto-increments without conflict check.

title

String

The new display name.

order

Int

The new display order.

entityTypeIds

[ID!]

Replace entity types. Null means no change, empty means universal.

meta

The display properties.


Pagination types

TagConnection

A paginated list of Tag items.

Implements: Connection

Field
Type
Description

edges

A list of edges.

nodes

[Tag!]!

A list of nodes in the connection (without edge metadata).

pageInfo

Information about the current page.

total

The total count of items matching the filter.


TagEdge

An edge in the Tag connection.

Implements: Edge

Field
Type
Description

cursor

String!

An opaque cursor for this edge.

node

The tag at the end of the edge.


See also

Last updated

Was this helpful?