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

Automatic OR condition FIlterGroup #32

Closed niou-ns closed 1 year ago

niou-ns commented 1 year ago

Hey! It would be great if you would add method for creating OR groups without passing conditionLogic, like:

SOQL.FilterGroup .add(SOQL.Filter.with(Account.Id).equal(accountId)) .add(SOQL.Filter.with(Account.Name).contains('MyAccount')) .orGroup();

and those conditions would be treated as 1 OR 2.

Thanks!