Open walters954 opened 1 month ago
@cyberjus updated description https://github.com/Cloud-Code-Academy/developer-kickstart-soql/blob/aa1cff3011c686f941adbe1f7548b8806aea0d27/force-app/main/default/classes/SOQL.cls#L341 And updated test method https://github.com/Cloud-Code-Academy/developer-kickstart-soql/blob/aa1cff3011c686f941adbe1f7548b8806aea0d27/force-app/main/default/classes/SOQLTest.cls#L900
https://github.com/Cloud-Code-Academy/developer-kickstart-cohort6-module5-soql-developer-kickstart-week5/blob/813548415592aa7a4ad5ca1b328afe8704b58df0/force-app/main/default/classes/SOQLTest.cls#L748
Question 25
Most people seem to be trying to get only the first contact on the account. They are checking from their query they have only the first contact. This seems to be more accurate solution. This should probably be changed to testContact1
for (Contact contact : accountContacts) { // Add the first contact for each account to the map if (!accountToContactMap.containsKey(contact.AccountId)) { accountToContactMap.put(contact.AccountId, contact); }