From 1a1cb3da9d894f050ddb52b05bf74df41950783d Mon Sep 17 00:00:00 2001 From: Piotr Gajek Date: Wed, 8 Nov 2023 11:14:51 +0100 Subject: [PATCH] Update README.md (#94) Signed-off-by: Piotr Gajek --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b0c98d0c..742f3fdc 100644 --- a/README.md +++ b/README.md @@ -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(); } @@ -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) {