Skip to main content

UnitOfMeasure

A unit of measure, with the dimension and exact conversion factor needed to resolve a quantity stated in one unit into another.

type UnitOfMeasure {
conversionFactor: String
convertible: Boolean!
dimension: UnitDimensionEnum
name: String!
prettyName: String!
wholeOnly: Boolean!
}

Fields​

UnitOfMeasure.conversionFactor ● String scalar common​

Exact multiplier into the dimension's base unit, as a string. Null for packaging units.

UnitOfMeasure.convertible ● Boolean! non-null scalar common​

True when this unit has a dimension and can be converted.

UnitOfMeasure.dimension ● UnitDimensionEnum enum products​

Null for packaging units, which do not convert.

UnitOfMeasure.name ● String! non-null scalar common​

The stored value, as accepted by ProductUomEnum.

UnitOfMeasure.prettyName ● String! non-null scalar common​

Display label for the unit, naming the measurement system where the factor depends on it, such as Gallon (US).

UnitOfMeasure.wholeOnly ● Boolean! non-null scalar common​

True when declared quantities in this unit must be whole numbers.

Returned By​

unitsOfMeasure query