Skip to main content

getUOMConversion

Requires permission products:product:read.

One unit conversion by its id, or null when it was deleted or is not this organization's.

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 GetUOMConversion($id: String!) {
getUOMConversion(id: $id) {
id
createdAt
conversionFactor
deletedAt
deletedBy
enteredBy
fromUOM {
id
code
colorCode
name
pluralName
createdAt
}
}
}

Variables:

{
"id": "string"
}

Response:

{
"data": {
"getUOMConversion": {
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"conversionFactor": 0,
"deletedAt": "2025-01-15T00:00:00Z",
"deletedBy": "string",
"enteredBy": "string",
"fromUOM": {
"id": "id",
"code": "string",
"colorCode": "string",
"name": "string",
"pluralName": "string",
"createdAt": "2025-01-15T00:00:00Z"
}
}
}
}
getUOMConversion(
id: String!
): UOMConversion

Arguments​

getUOMConversion.id ● String! non-null scalar​

The ID of the conversion.

Type​

UOMConversion object​

A conversion between two units of the same category. Creating one also creates the reverse conversion.