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
5 months, 4 weeks agoSS1121
6 months, 1 week agoSanjeevOnForce
1 year, 1 month agoCindy_Hr
1 year, 2 months agoBrucePark
1 year, 5 months ago