Skip to main content

getBaseUOM

Requires an authenticated session.

The base unit of a category, or null when the category has none.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query GetBaseUOM($category: UOMCategory!) {
getBaseUOM(category: $category) {
id
code
colorCode
name
pluralName
createdAt
conversionFrom {
id
createdAt
conversionFactor
deletedAt
deletedBy
enteredBy
}
}
}

Variables:

{
"category": "AREA"
}

Response:

{
"data": {
"getBaseUOM": {
"id": "id",
"code": "string",
"colorCode": "string",
"name": "string",
"pluralName": "string",
"createdAt": "2025-01-15T00:00:00Z",
"conversionFrom": [
{
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"conversionFactor": 0,
"deletedAt": "2025-01-15T00:00:00Z",
"deletedBy": "string",
"enteredBy": "string"
}
]
}
}
}
getBaseUOM(
category: UOMCategory!
): UnitOfMeasure

Arguments​

getBaseUOM.category ● UOMCategory! non-null enum​

The unit category.

Type​

UnitOfMeasure object​

A unit of measure in the organization's catalog, with its category, decimal rules and display settings.