I can query something like
select myCustomField, Owner.Name from myCustomObject, and get the owner's name in the results, which works as expected in a soql query.
However, when I execute this in Apex, it returns a
List<myCustomObject>, which does not contain a property for Owner.Name, so the owner value is lost.
I did notice that it does return the OwnerID. Is there any way to return the actual result of this query in Apex, including the Owner information?