https://github.com/veliovgroup/meteor-minimongo-extensions
Useful mongo extensions for Meteor
https://github.com/veliovgroup/meteor-minimongo-extensions
Last synced: 3 months ago
JSON representation
Useful mongo extensions for Meteor
- Host: GitHub
- URL: https://github.com/veliovgroup/meteor-minimongo-extensions
- Owner: veliovgroup
- License: mit
- Created: 2015-05-18T01:10:42.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-18T01:53:14.000Z (about 10 years ago)
- Last Synced: 2025-01-11T17:48:56.279Z (5 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Mini-mongo extensions
=======
At this package we will publish mini-mongo functionality extensionsInstall the driver
=======
```
meteor add ostrio:minimongo-extensions
```Extensions
=======
Currently only one extension is available:
#### collection.insert(doc, [callback])
- `doc` {*Object*|*[Object]*}
- `callback` {*Function*}
* `error` {*Meteor.Error*}
* `result` {*String*|*[String]*} - New document ID or array of new documents IDsAfter installing this package every `collection.insert()` will accept array of objects **[Object]**, each object in array will be inserted separately by its own, in accordance to [db.collection.insert](http://docs.mongodb.org/manual/reference/method/db.collection.insert/#db.collection.insert) MongoDB docs.
If `doc` is array of objects, second parameter of the callback is array of new documents IDs. For more see [collection.insert(doc, [callback])](http://docs.meteor.com/#/full/insert)