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

Catalog items

Queries, mutations, and types for catalog items, the configurable lookup entries used for device types, asset types, statuses, and other reference data.

Operations and types for managing catalog items - the configurable lookup entries.

Queries

catalog (query)

Retrieves a catalog by its ID.

catalog(id: ID!): Catalog

Arguments

Name
Type
Description

id

ID!

The ID of the catalog to retrieve.

Output types:

Catalog

A catalog definition that contains catalog items. Catalogs are themselves catalog items.

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

Self-reference for the meta-catalog.

workspace

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

meta

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

module

The module this catalog is associated with.

items

The items in this catalog.


catalogs

Lists catalogs in the caller's workspace.

catalogs(
    filter: CatalogItemFilter
    first: Int
    after: String
    last: Int
    before: String
    orderBy: CatalogItemOrder = { field: ORDER, direction: ASC }
  ): CatalogConnection!

Arguments

Name
Type
Description

filter

CatalogItemFilter

Filtering options for the returned catalogs.

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 catalogs.

Input types:

CatalogItemFilter

Filtering options for catalog items.

Field
Type
Description

titleContains

String

Partial match on title (case-insensitive contains).

codes

[Code!]

Match any of these codes.

CatalogItemOrder

Ordering options for catalog items.

Field
Type
Description

field

The field to order by.

direction

The direction to order.

Output types:

CatalogConnection

A paginated list of Catalog items.

Implements: Connection

Field
Type
Description

edges

A list of edges.

nodes

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

catalogCreate

Creates a new user-defined catalog.

Arguments

Name
Type
Description

input

CatalogCreateInput!

The input fields for creating the catalog.

Input types:

CatalogCreateInput

Input for creating a user-defined catalog (a container for user catalog items).

Field
Type
Description

moduleId

ID

The module this catalog belongs to. Defaults to the platform's own module (bdr) if omitted.

code

The machine-readable code, unique within the workspace. Auto-generated from title if omitted.

title

String!

The display name.

order

Int

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

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:

CatalogPayload

The result of a catalog mutation.

Field
Type
Description

catalog

The created or updated catalog.

Catalog (entity)

A catalog definition that contains catalog items. Catalogs are themselves catalog items.

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

Self-reference for the meta-catalog.

workspace

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

meta

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

module

The module this catalog is associated with.

items

The items in this catalog.


catalogUpdate

Updates a user-defined catalog.

Arguments

Name
Type
Description

input

CatalogUpdateInput!

The input fields for updating the catalog.

Input types:

CatalogUpdateInput

Input for updating a user-defined catalog.

Field
Type
Description

id

ID!

The catalog 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.

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:

CatalogPayload

The result of a catalog mutation.

Field
Type
Description

catalog

The created or updated catalog.

Catalog (entity)

A catalog definition that contains catalog items. Catalogs are themselves catalog items.

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

Self-reference for the meta-catalog.

workspace

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

meta

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

module

The module this catalog is associated with.

items

The items in this catalog.


catalogDelete

Deletes a user-defined catalog.

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

CatalogDeleteInput!

The input fields for deleting the catalog.

Input types:

CatalogDeleteInput

Input for deleting a user-defined catalog.

Field
Type
Description

id

ID!

The catalog ID to delete.

version

Int

The current version for optimistic locking. If omitted, deletes regardless of version.

Output types:

DeletePayload

The result of a delete mutation.

Field
Type
Description

deletedId

ID!

The ID of the deleted entity.


Objects

CatalogItemMeta

Metadata about a catalog item.

Field
Type
Description

description

String

A description of the catalog item. Can be localized.

origin

The origin indicating how this item was created.

canBeDeleted

Boolean!

Whether this item can be deleted: false for system items; a workspace item may still be refused with IN_USE.

hidden

Boolean!

Whether this item is hidden from regular UI lists.


Catalog

A catalog definition that contains catalog items. Catalogs are themselves catalog items.

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

Self-reference for the meta-catalog.

workspace

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

meta

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

module

The module this catalog is associated with.

items

The items in this catalog.

Arguments of items

Name
Type
Description

filter

Filtering options for the returned items.

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

The ordering options for the returned items. Default: { field: ORDER, direction: ASC }.


CatalogPayload

The result of a catalog mutation.

Field
Type
Description

catalog

The created or updated catalog.


Inputs

CatalogItemFilter

Filtering options for catalog items.

Field
Type
Description

titleContains

String

Partial match on title (case-insensitive contains).

codes

[Code!]

Match any of these codes.


CatalogItemChildrenFilter

Filtering options for catalog item children.

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.


CatalogItemMetaInput

Display properties for catalog items.

Field
Type
Description

description

String

The description.

hidden

Boolean

Whether the item is hidden from regular UI lists.


CatalogCreateInput

Input for creating a user-defined catalog (a container for user catalog items).

Field
Type
Description

moduleId

ID

The module this catalog belongs to. Defaults to the platform's own module (bdr) if omitted.

code

The machine-readable code, unique within the workspace. Auto-generated from title if omitted.

title

String!

The display name.

order

Int

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

meta

The display properties.


CatalogUpdateInput

Input for updating a user-defined catalog.

Field
Type
Description

id

ID!

The catalog 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.

meta

The display properties.


CatalogDeleteInput

Input for deleting a user-defined catalog.

Field
Type
Description

id

ID!

The catalog ID to delete.

version

Int

The current version for optimistic locking. If omitted, deletes regardless of version.


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.


Enums

CatalogItemOrigin

The origin of a catalog item, indicating how it was created.

Value
Description

SYSTEM

Predefined by platform. Immutable and available to all workspaces.

WORKSPACE

Created by the current workspace.

PRESET

Created by BDR in the current workspace when the workspace was activated. Only asset types have this origin: the base types Workforce, Vehicle and Cargo, told apart by their code (workforce, vehicle, cargo), which cannot change. The workspace owns the item and can edit or delete it like a WORKSPACE one. A type the workspace creates itself is WORKSPACE, whatever its code.


CatalogItemOrderField

Fields available for ordering catalog items.

Value
Description

ORDER

Order by display order.

CODE

Order by code.

TITLE

Order by title.

CREATED_AT

Order by creation date and time.


Interfaces

CatalogItem

A dictionary item that provides reference data for the system.

Implements: 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.


HierarchicalCatalogItem

A catalog item that supports parent-child hierarchy.

Field
Type
Description

parent

The parent item in the hierarchy. Null for root items.


Pagination types

CatalogItemConnection

A paginated list of CatalogItem items.

Implements: Connection

Field
Type
Description

edges

A list of edges.

nodes

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.


CatalogItemEdge

An edge in the CatalogItem connection.

Implements: Edge

Field
Type
Description

cursor

String!

An opaque cursor for this edge.

node

The catalog item at the end of the edge.


CatalogConnection

A paginated list of Catalog items.

Implements: Connection

Field
Type
Description

edges

A list of edges.

nodes

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.


CatalogEdge

An edge in the Catalog connection.

Implements: Edge

Field
Type
Description

cursor

String!

An opaque cursor for this edge.

node

The catalog at the end of the edge.


See also

Last updated

Was this helpful?