I have several documents in a MongoDB Collection, with a field \'name\' (which is a String).
How can I perform queries like 7 <= name.length <= 14
7 <= name.length <= 14
You can use a JavaScript expression.
User.where("this.name.length >= 7 && this.name.length <= 14")