function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sai kumar 49sai kumar 49 

what is @readonly?

Jason Curtis NBSFDGJason Curtis NBSFDG
You will need to give us more context, where are you seeing this? In Apex, in Chatter, in a Visualforce page?
ManojjenaManojjena
HI Sai,
@readOnly is an annotaion in salesforce . This  allow us to unrestricted queries against the force.com database .

It has some restriction to get more about the restrictions and trics please check below link .

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_ReadOnly.htm

Let me know if it helps .

Thanks 
Manoj