beyond-the-cloud-dev / soql-lib

The SOQL Lib provides functional constructs for SOQL queries in Apex.
https://soql.beyondthecloud.dev/
MIT License
63 stars 10 forks source link

Add method to check if record exists #65

Closed pgajek2 closed 1 year ago

pgajek2 commented 1 year ago

Instead of:

Boolean isRecordExists = SOQL.of(Account.SObjectType).byId('someId').toList() > 0;

Allow for:

Boolean isRecordExists = SOQL.of(Account.SObjectType).byId('someId').doExist();