Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This declaration will create a MongoDB connection and model objecta collection object named "users". A "useSelectLink" between the find function and the collection is also created.

Code Block
languagejs
titleConnector "Mongoose"
var mongoose = require('mongoose');
 
mongoose.connect('mongodb://localhost/analyzerlauncher', function(err) {
   if (err) { throw err; }
});

// create a Mongoose model
userModel = mongoose.model('users', userSchema);

What

Links creation

The following links will be generated from a call of the following methods from a collection object:

link typemethods
useSelectLinkfindOne, findById, where, find, exists
useDeleteLinkremove, findByIdAndRemove, findOneAndRemove, findByIdAndDelete, findOneAndDelete, deleteOne, deleteMany
useUpdateLinkupdate, updateOne, updateMany, findByIdAndUpdate, findOneAndUpdate, findByIdAndReplace, findOneAndReplace, replaceOne
useInsertLinkinsertMany, insert, create


results can you expect?

Once the analysis/snapshot generation has completed, you can view the results in the normal manner (for example via CAST Enlighten):

...