Skip to main content

ConvertQuantityInput

A quantity and the two units to convert between.

input ConvertQuantityInput {
fromUOMId: String!
productId: String
quantity: Float!
toUOMId: String!
}

Fields​

ConvertQuantityInput.fromUOMId ● String! non-null scalar​

The ID of the unit to convert from.

ConvertQuantityInput.productId ● String scalar​

The ID of a product whose own pack conversions to use, when it has them.

ConvertQuantityInput.quantity ● Float! non-null scalar​

The quantity to convert, in the from unit. Must not be negative.

ConvertQuantityInput.toUOMId ● String! non-null scalar​

The ID of the unit to convert to. It must be in the same category.

Member Of​

convertQuantity query