Skip to content

Commit

Permalink
Update README.md (#94)
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Gajek <[email protected]>
  • Loading branch information
pgajek2 authored Nov 8, 2023
1 parent 9cd7146 commit 1a1cb3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Read [how to build your selector class](https://soql-lib.vercel.app/building-you

```apex
public inherited sharing class SOQL_Contact extends SOQL implements SOQL.Selector {
public static final String MOCK_ID = 'SOQL_Contact';
public static SOQL_Contact query() {
return new SOQL_Contact();
}
Expand All @@ -38,7 +40,8 @@ public inherited sharing class SOQL_Contact extends SOQL implements SOQL.Selecto
// default settings
with(Contact.Id, Contact.Name, Contact.AccountId)
.systemMode()
.withoutSharing();
.withoutSharing()
.mockId(MOCK_ID);
}
public SOQL_Contact byRecordType(String rt) {
Expand Down

1 comment on commit 1a1cb3d

@vercel
Copy link

@vercel vercel bot commented on 1a1cb3d Nov 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.