public with sharing class AccountController { @AuraEnabled(cacheable=true) public static List findAccounts(String searchKey) { String key = searchKey + '%'; return [SELECT Id, Name FROM Account WHERE Name LIKE :key LIMIT 5]; } }