An open API service indexing awesome lists of open source software.

https://github.com/bbqsrc/mendo

MongoDB-style document manipulation for objects within arrays, in JavaScript (including in the browser).
https://github.com/bbqsrc/mendo

Last synced: 12 months ago
JSON representation

MongoDB-style document manipulation for objects within arrays, in JavaScript (including in the browser).

Awesome Lists containing this project

README

          

# Mendo

MongoDB-style document manipulation for objects within arrays, in JavaScript (including in the browser).

It's tremendous!

## Usage

Use the `mendo` method to wrap an array. The resultant object has a `find`, `findOne` and `update` method that can be used in the same manner that the MongoDB methods of the same name work.

### Supported Operators

#### Query Operators

* $or
* $and
* $not
* $ne
* $gt
* $gte
* $lt
* $lte
* $in
* $nin
* $exists
* $where

#### Update Operators

* $set
* $push
* $inc