A developer must perform a complex SOQL query that joins two objects in a Lightning component.
How can the Lightning component execute the query?
A developer must perform a complex SOQL query that joins two objects in a Lightning component.
How can the Lightning component execute the query?
To perform a complex SOQL query that joins two objects in a Lightning component, the best approach is to invoke an Apex class with a method annotated as @AuraEnabled. Apex is specifically designed to interact with Salesforce database objects and can handle complex queries efficiently. Once the data is retrieved, it can be sent back to the Lightning component for further processing or display.
Why not A
Ans is A you can not perform SOQL query directly from lwc
D is correct. A doesn't have any strategy to do for join query. Wrapper can be technique to transfer joined data. A is just about AuraEnabled method.
https://www.sfdcpoint.com/salesforce/wrapper-class-in-lwc/
D doesn't make any sense
D makes no senses indeed. We do @AuraEnabled(cacheable=true) in Apex Still surprised only 3 fellow saw this