(columnName, value)
| 611 | } |
| 612 | |
| 613 | startsWith(columnName, value) { |
| 614 | if (columnName === 'id') |
| 615 | columnName = '_' + columnName; |
| 616 | |
| 617 | var regex = '^' + value; |
| 618 | if (!this.query[columnName]) { |
| 619 | this.query[columnName] = {}; |
| 620 | } |
| 621 | |
| 622 | this.query[columnName]["$regex"] = regex; |
| 623 | this.query[columnName]["$options"] = 'im'; |
| 624 | |
| 625 | return this; |
| 626 | } |
| 627 | |
| 628 | regex(columnName, value, isCaseInsensitive) { |
| 629 | if (columnName === 'id') |
no outgoing calls
no test coverage detected