No, you cannot perform update operations in an @AuraEnabled(cacheable=true) method. The @AuraEnabled(cacheable=true) annotation is used to indicate that the method's results can be cached on the client side for performance optimization. This implies that the method must be idempotent and should not change any data. It should be used for read-only operations.
To perform update operations, you should use a standard @AuraEnabled method without the cacheable=true attribute. Here’s how you can do it:
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Neel_sehgal
4 months, 1 week agoSS1121
4 months, 3 weeks agoSanjeevOnForce
1 year agoCindy_Hr
1 year, 1 month agoBrucePark
1 year, 3 months ago