Getting wrong dimension units for metafields

I’m using the API GraphQL to get the values of meta fields, which were created using the Dimensions type.
The official documentation says that the values accepted are: in , ft , yd , mm , cm , m .

But it’s not working. What are the unit values returned via API for each unit of measure?

The unit value doesn’t return the values we see in the documentation, it returns these values below as unit:

  • MILLIMETERS
  • METERS
  • FEET
  • YARDS
  • INCHES