I'm reading the answer to this following question:
However, when I run the following query in execute anonymous (Request Type is a field definition):
System.debug([SELECT Request_Type__r.QualifiedApiName FROM Health_Cloud_Integration_Settings__mdt LIMIT 1]);
I get the following:
14:44:07:832 USER_DEBUG [2]|DEBUG|(Health_Cloud_Integration_Settings__mdt:{Request_Type__c=Case.00N0J000003sOFL, Id=m0O5E000000CeFjUAK})
Why can't I get the API name of a field definition from a Custom Metadata Type?
If I run the query in Query Editior, it works fine, and returns the qualified api name.