We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would be nice to support ignoreCase in queryOptions.
var req = this.model.fetch({ query: {label : ''+this.query+''}, onBegin: this._onBegin, onItem: this._onItem, onComplete: this._onComplete, onError: this._onError, start: this._page * this.rowSize, // fetch one extra to check if there's a next count: this.rowSize + 1, /queryOptions: { deep: false, ignoreCase: true },/ sort : { attribute : 'label', descending : true }, scope: this });
The text was updated successfully, but these errors were encountered:
mongo does not appear to have such an option. It can do ignore case on regular expressions.
Sorry, something went wrong.
You can accomplish the above with this: query: { label: '/' + this._query + '/i' }
I'm constructing a regular expression with the ignore case flag.
I've got no idea how that will work with sort though...
No branches or pull requests
Would be nice to support ignoreCase in queryOptions.
var req = this.model.fetch({
query: {label : ''+this.query+''},
onBegin: this._onBegin,
onItem: this._onItem,
onComplete: this._onComplete,
onError: this._onError,
start: this._page * this.rowSize,
// fetch one extra to check if there's a next
count: this.rowSize + 1,
/queryOptions: {
deep: false,
ignoreCase: true
},/
sort : {
attribute : 'label',
descending : true
},
scope: this
});
The text was updated successfully, but these errors were encountered: