← All types
Ob Object

Mass

A mass measurement with preserved unit provenance. Distinct from PaperWeight (mass per area).

Fields

raw

Float!Non-null

The stored numeric value, in unit.

unit

MassUnit!Non-null

The unit the value was originally supplied in.

Possible values (5)
UG

Micrograms. 1 µg = 1/1 000 000 g.

G

Grams. The internal canonical unit for arithmetic-equivalence.

KG

Kilograms. 1 kg = 1000 g.

LB

International avoirdupois pounds. 1 lb = 453.59237 g exactly.

OZ

International avoirdupois ounces. 1 oz = 1/16 lb.

The value re-expressed in micrograms.

grams

Float!Non-null

The value re-expressed in grams. Canonical unit for arithmetic-equivalence.

The value re-expressed in kilograms.

pounds

Float!Non-null

The value re-expressed in international avoirdupois pounds.

ounces

Float!Non-null

The value re-expressed in international avoirdupois ounces.

value

Float!Non-null

The value re-expressed in any supported unit.

Arguments (1)

unit

MassUnit!Required

The unit to re-express the value in.

Possible values (5)
UG

Micrograms. 1 µg = 1/1 000 000 g.

G

Grams. The internal canonical unit for arithmetic-equivalence.

KG

Kilograms. 1 kg = 1000 g.

LB

International avoirdupois pounds. 1 lb = 453.59237 g exactly.

OZ

International avoirdupois ounces. 1 oz = 1/16 lb.

Referenced by (0)
    Exact type SDL
    """
    A mass measurement with preserved unit provenance. Distinct from `PaperWeight` (mass per area).
    """
    type Mass {
      """The stored numeric value, in `unit`."""
      raw: Float!
      """The unit the value was originally supplied in."""
      unit: MassUnit!
      """The value re-expressed in micrograms."""
      micrograms: Float!
      """
      The value re-expressed in grams. Canonical unit for arithmetic-equivalence.
      """
      grams: Float!
      """The value re-expressed in kilograms."""
      kilograms: Float!
      """The value re-expressed in international avoirdupois pounds."""
      pounds: Float!
      """The value re-expressed in international avoirdupois ounces."""
      ounces: Float!
      """The value re-expressed in any supported unit."""
      value(
        """The unit to re-express the value in."""
        unit: MassUnit!
      ): Float!
    }