Question 141 · 279 in bank
Select 2A developer wants to call an Apex Server-side Controller from a Lightning Aura Component. What are two limitations to the data being returned by the Controller? (Choose two.)
Show answer
Answer: AC
Explanation
According to the documentation: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_apex_returning_data.htm Results data from an Apex server-side controller must be serializable into JSON format. This means that only basic data types and sObjects are supported as return types for Apex controllers called by Lightning Aura Components. Lists of custom Apex classes can also be returned, but only the values of public instance properties and methods annotated with @AuraEnabled are serialized and returned. In this case, the correct answers are A and D
Source: Adapted from community discussion — moitam