I am currently doing trailhead and in one exercise I saw the following SOQL and I am trying to get an understanding of it.
Map<Id,Account> acctsWithOpps = new Map<Id,Account>([SELECT Id,(SELECT Id FROM Opportunities) FROM Account]); System.debug(acctsWithOpps);
The above snippet produces the following output
Basically it displays all the opportunities (if there are any) for an Account.
My question is with respect to the map intialization.
In the map init statement, I do not see any Opportunity object at all.
All it says is
Map<Id, Account> where are the Opportunity objects here ?