Salesforce
PDII · Question #345
Consider the controller code below that is called from an Aura component and returns data wrapped in a class. The developer verified that the queries return a single record each and there is error…
The correct answer is A. The member's Name and Option of the class MyDataWrapper should be annotated with. See the full explanation below for the reasoning.
Question
Consider the controller code below that is called from an Aura component and returns data wrapped in a class. The developer verified that the queries return a single record each and there is error handling in the Aura component, but the component is not getting anything back when calling the controller getSomeData(). What is wrong?
Exhibit
Options
- AThe member's Name and Option of the class MyDataWrapper should be annotated with
- BThe member's Name and Option should not have getter and setter.
- CThe member's Name and Option should not be declared public.
- DInstances of Apex classes, such as MyDataWrapper, cannot be returned to a Lightning
How the community answered
(42 responses)- A81% (34)
- B5% (2)
- C5% (2)
- D10% (4)
Community Discussion
No community discussion yet for this question.
