We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cd7146 commit 1a1cb3dCopy full SHA for 1a1cb3d
README.md
@@ -29,6 +29,8 @@ Read [how to build your selector class](https://soql-lib.vercel.app/building-you
29
30
```apex
31
public inherited sharing class SOQL_Contact extends SOQL implements SOQL.Selector {
32
+ public static final String MOCK_ID = 'SOQL_Contact';
33
+
34
public static SOQL_Contact query() {
35
return new SOQL_Contact();
36
}
@@ -38,7 +40,8 @@ public inherited sharing class SOQL_Contact extends SOQL implements SOQL.Selecto
38
40
// default settings
39
41
with(Contact.Id, Contact.Name, Contact.AccountId)
42
.systemMode()
- .withoutSharing();
43
+ .withoutSharing()
44
+ .mockId(MOCK_ID);
45
46
47
public SOQL_Contact byRecordType(String rt) {
0 commit comments