diff --git a/website/docs/api/soql-filter.md b/website/docs/api/soql-filter.md index ec0a5997..00047f38 100644 --- a/website/docs/api/soql-filter.md +++ b/website/docs/api/soql-filter.md @@ -413,6 +413,7 @@ SOQL.of(Contact.SObjectType) ```apex Filter contains(String value) +Filter contains(String prefix, String value, String suffix); ``` **Example** @@ -426,6 +427,10 @@ WHERE Name = '%My%' SOQL.of(Contact.SObjectType) .whereAre(SOQL.Filter.with(Account.Name).contains('My')) .toList(); + +SOQL.of(Contact.SObjectType) + .whereAre(SOQL.Filter.with(Account.Name).contains('_', 'My', '%')) + .toList(); ``` ### endsWith diff --git a/website/docs/api/soql.md b/website/docs/api/soql.md index 81f7bac7..5b6c5e70 100644 --- a/website/docs/api/soql.md +++ b/website/docs/api/soql.md @@ -14,6 +14,7 @@ Conctructs an `SOQL`. ```apex SOQL of(SObjectType ofObject) +SOQL of(String ofObject) ``` **Example** @@ -23,6 +24,9 @@ SELECT Id FROM Account ``` ```apex SOQL.of(Account.SObjectType).toList(); + +String ofObject = 'Account'; +SOQL.of(ofObject).toList(); ``` ## select