MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / startsWith

Method startsWith

sdk/src/CloudQuery.js:613–626  ·  view source on GitHub ↗
(columnName, value)

Source from the content-addressed store, hash-verified

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')

Callers 2

test.jsFile · 0.80
queryTest.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected