getRootFieldName = (fieldName: string): string => {
  return fieldName.split('.')[0];
}
When querying, the fieldName may be compound, extract the root fieldName
    `temperature.celsius` becomes `temperature`
@param {string} fieldName that may be a compound field name
@returns {string} the root name of the field