@@ -123,8 +123,10 @@ function future(): Any {
123123} @@@expressionContext([AccessPolicy])
124124
125125/* *
126- * If the field value contains the search string. By default, the search is case-sensitive,
127- * but you can override the behavior with the "caseInSensitive" argument.
126+ * Checks if the field value contains the search string. By default, the search is case-sensitive, and
127+ * "LIKE" operator is used to match. If `caseInSensitive` is true, "ILIKE" operator is used if
128+ * supported, otherwise it still falls back to "LIKE" and delivers whatever the database's
129+ * behavior is.
128130 */
129131function contains(field: String , search: String , caseInSensitive: Boolean ?): Boolean {
130132} @@@expressionContext([AccessPolicy, ValidationRule])
@@ -136,15 +138,21 @@ function search(field: String, search: String): Boolean {
136138} @@@expressionContext([AccessPolicy])
137139
138140/* *
139- * If the field value starts with the search string
141+ * Checks the field value starts with the search string. By default, the search is case-sensitive, and
142+ * "LIKE" operator is used to match. If `caseInSensitive` is true, "ILIKE" operator is used if
143+ * supported, otherwise it still falls back to "LIKE" and delivers whatever the database's
144+ * behavior is.
140145 */
141- function startsWith(field: String , search: String ): Boolean {
146+ function startsWith(field: String , search: String , caseInSensitive: Boolean ? ): Boolean {
142147} @@@expressionContext([AccessPolicy, ValidationRule])
143148
144149/* *
145- * If the field value ends with the search string
150+ * Checks if the field value ends with the search string. By default, the search is case-sensitive, and
151+ * "LIKE" operator is used to match. If `caseInSensitive` is true, "ILIKE" operator is used if
152+ * supported, otherwise it still falls back to "LIKE" and delivers whatever the database's
153+ * behavior is.
146154 */
147- function endsWith(field: String , search: String ): Boolean {
155+ function endsWith(field: String , search: String , caseInSensitive: Boolean ? ): Boolean {
148156} @@@expressionContext([AccessPolicy, ValidationRule])
149157
150158/* *
0 commit comments