Skip to content

Commit 1a1cb3d

Browse files
authored
Update README.md (#94)
Signed-off-by: Piotr Gajek <[email protected]>
1 parent 9cd7146 commit 1a1cb3d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Read [how to build your selector class](https://soql-lib.vercel.app/building-you
2929

3030
```apex
3131
public inherited sharing class SOQL_Contact extends SOQL implements SOQL.Selector {
32+
public static final String MOCK_ID = 'SOQL_Contact';
33+
3234
public static SOQL_Contact query() {
3335
return new SOQL_Contact();
3436
}
@@ -38,7 +40,8 @@ public inherited sharing class SOQL_Contact extends SOQL implements SOQL.Selecto
3840
// default settings
3941
with(Contact.Id, Contact.Name, Contact.AccountId)
4042
.systemMode()
41-
.withoutSharing();
43+
.withoutSharing()
44+
.mockId(MOCK_ID);
4245
}
4346
4447
public SOQL_Contact byRecordType(String rt) {

0 commit comments

Comments
 (0)