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).
- Host: GitHub
- URL: https://github.com/bbqsrc/mendo
- Owner: bbqsrc
- License: gpl-3.0
- Created: 2013-11-12T07:36:21.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-19T08:39:36.000Z (about 12 years ago)
- Last Synced: 2024-12-31T21:11:58.532Z (about 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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