function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Andrew ChabotAndrew Chabot 

Apex Controller Limit

I am on the Trailhead = UX Prototyping Basics: Iterate on Your Prototype and I cannot get the Apex Controller, limit the account, contact and lead SOQL to return 5 records.  Can someone help me with what the code should be for this?
User-added imageUser-added image
Can you please help me with what the correct code is to set the limiting query results to 5?
Ian SFDCIan SFDC
You need to update the SearchResultsController apex class.

User-added image