Created
January 12, 2016 13:31
-
-
Save dvas0004/a67f1093bc323d7556ed to your computer and use it in GitHub Desktop.
regex example using pouchdb-find
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.find({ | |
selector: { | |
_id: {$gte: null}, | |
name: {$regex: ".*ri.*"} | |
}, | |
fields: ['_id', 'debut', 'name', 'series'] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
unknown operator "0" - should be one of $eq, $lte, $lt, $gt, $gte, $exists, $ne, $in, $nin, $size, $mod, $regex, $elemMatch, $type, $allMatch or $all