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!): CatalogArguments
id
ID!
The ID of the catalog to retrieve.
Output types:
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
filter
CatalogItemFilter
Filtering options for the returned catalogs.
orderBy
CatalogItemOrder
The ordering options for the returned catalogs.
Input types:
Output types:
Mutations
catalogCreate
Creates a new user-defined catalog.
Arguments
input
CatalogCreateInput!
The input fields for creating the catalog.
Input types:
Output types:
catalogUpdate
Updates a user-defined catalog.
Arguments
input
CatalogUpdateInput!
The input fields for updating the catalog.
Input types:
Output types:
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
input
CatalogDeleteInput!
The input fields for deleting the catalog.
Input types:
Output types:
Objects
CatalogItemMeta
Metadata about a catalog item.
description
String
A description of the catalog item. Can be localized.
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
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 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.
Arguments of items
orderBy
The ordering options for the returned items. Default: { field: ORDER, direction: ASC }.
CatalogPayload
The result of a catalog mutation.
Inputs
CatalogItemFilter
Filtering options for catalog items.
titleContains
String
Partial match on title (case-insensitive contains).
CatalogItemChildrenFilter
Filtering options for catalog item children.
titleContains
String
Partial match on title (case-insensitive contains).
CatalogItemOrder
Ordering options for catalog items.
CatalogItemMetaInput
Display properties for catalog items.
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).
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.
CatalogUpdateInput
Input for updating a user-defined catalog.
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.
CatalogDeleteInput
Input for deleting a user-defined catalog.
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.
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.
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.
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
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 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.
HierarchicalCatalogItem
A catalog item that supports parent-child hierarchy.
Pagination types
CatalogItemConnection
A paginated list of CatalogItem items.
Implements: Connection
CatalogItemEdge
An edge in the CatalogItem connection.
Implements: Edge
cursor
String!
An opaque cursor for this edge.
CatalogConnection
A paginated list of Catalog items.
Implements: Connection
CatalogEdge
An edge in the Catalog connection.
Implements: Edge
cursor
String!
An opaque cursor for this edge.
See also
Last updated
Was this helpful?