I am fetching related records from different tables in my PCF to populate fields in a React app. A problem is that because the data is read in as strings, it needs to be converted to match types of the interface members used in the React app.
I found this method online: `getEntityMetadata(entityName: string, attributes: string[])` which can be used from the PCF context object (context.utils.getEntityMetadata). There is a similar function that is instead part of the Client API that is called from using XRM.Utiliity.getEntityMetadata
I want to access the EntityMetadata object from Comonent Framework (the first link) as it supposedly contains metadata for the columns, including the column data types. But instead, both of these functions return the same value being the Client API return object (from the second link).
Below is an image of what is being returned by both `this.context.utils.getEntityMetadata` and `Xrm.Utility.getEntityMetaData`.

My control a dataset type and is being tested on a MDA. I also added the Utility feature to the ControlManifest file

This is bizarre as the documentation says that `context.utils.getMetadata` returns a completely different object. Can anyone see something I am missing or misunderstanding?
Any help is appreciated.