Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
regex example using pouchdb-find
db.find({
selector: {
_id: {$gte: null},
name: {$regex: ".*ri.*"}
},
fields: ['_id', 'debut', 'name', 'series']
});
@lakinmohapatra
Copy link

lakinmohapatra commented May 7, 2018

unknown operator "0" - should be one of $eq, $lte, $lt, $gt, $gte, $exists, $ne, $in, $nin, $size, $mod, $regex, $elemMatch, $type, $allMatch or $all

@lakinmohapatra
Copy link

lakinmohapatra commented May 7, 2018

how to fix this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment