Skip to content

Instantly share code, notes, and snippets.

@dvas0004
Created January 12, 2016 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvas0004/a67f1093bc323d7556ed to your computer and use it in GitHub Desktop.
Save dvas0004/a67f1093bc323d7556ed to your computer and use it in GitHub Desktop.
regex example using pouchdb-find
db.find({
selector: {
_id: {$gte: null},
name: {$regex: ".*ri.*"}
},
fields: ['_id', 'debut', 'name', 'series']
});
@lakinmohapatra
Copy link

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

how to fix this ?

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