Loading tutorials
@AuraEnabled annotation is what lets the two sides talk. This chapter explains what it doe6 min read@api and @wire. It also assumes you know how to read a record ID.5 min read@AuraEnabled marks a method as callable and what the static, public or global rules mean. Here you will learn how values cross the boundary between J5 min read@wire. It also assumes you know what @AuraEnabled and cacheable=true do on a method. The chapter covers how to return more than one SObject from a method,5 min readcacheable=true option on @AuraEnabled. It explains what the option promises, what it forbids, how the client cache behaves, and when to leave it off.6 min readcacheable=true marks an Apex method as read-only. The previous chapters covered how to mark a method and what cacheable means. Here you connect such a meth6 min read@api. You should also know that @AuraEnabled makes a static Apex method visible to components7 min read@AuraEnabled method fails, the component needs a message it can show to the user. This chapter covers how to throw errors from Apex, what the browser receives, and how to display them for both @wire and imperative calls.5 min read@AuraEnabled method, call it from a Lightning web component, and read basic SOQL and DML. It builds on the controller you have seen in earlier chapters and covers how to make that controller respect the running user's access.5 min read@AuraEnabled, cacheable=true, AuraHandledException and WITH USER_MODE material from earlier chapters. It reuses the `ContactContr5 min read@AuraEnabled methods, @wire calls, imperative calls, and security in controller code. You should also know the basics of Lightning web components (LWC) and SOQL.5 min read@AuraEnabled method rules, cacheable=true, wrapper classes, and error handling with AuraHandledException. You should also know basic Aura markup: aura:component, attributes, and the client-side controller and helper files.6 min read