A couchdb 2.0 query parser, using jison
Installation
npm install --save jouch
Usage
PouchDB
PouchDBconst db = '/path/to/pouch' const selector = db
CouchDB 2.0
// TODO: add couchdb usage example
Expressions
expression | result |
---|---|
== |
$eq |
!= |
$ne |
>= |
$gte |
<= |
$lte |
> |
$gt |
< |
$lt |
and |
$and |
or |
$or |
not |
$not |
has |
$elemMatch |
e.g.
const selector =
would parse to