Skip to content

apiko-dev/meteor-multiple-insert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meteor-multiple-insert

Adding an array object to the collection.

Made by Professional Meteor Development Studio - Professional Meteor Development Company

Usage

Add this package to your Meteor project: meteor add jss:multiple-insert.

After that you will be able to use insertMultiple function.

collection.insertMultiple

collection.insertMultiple(docs, [callback]) — Insert documents in the collection. Returns an array of their IDs. If you pass Object as the first argument, then insertMultiple will act in the same way as collection.insert.

Arguments:

  • docs(Array or Object) — Documents or the single document to insert. May not yet have an _id attribute, in which case Meteor will generate for you.
  • [callback(Function)] — Optional. If present, called with an error object as the first argument and, if no error, the _id as the second.

License

The meteor-multiple-insert project is under MIT license.

About

Adding an array object to the collection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •