aix-mongo
Node.js module for managing mongodb
This is a module that you can easily manage your mongodb database for inserting, updating, finding or removing your documnets.
If there is any problem or if you think it's better to update or add another functionality to the module please let me know, and help me to improve this simple and small package.
Installation
$ npm install aix-mongo
Usage
var db = ;
Adding ang important option
db;
Where your-database-name is your db.
Usage
Usage of aix-mongo
is very simple. There is just a few functions.
Converting string id to an object id
db;// Usage example in a remove function.db;// Or handy write and iddb;
Finding a document/s
db;
Example:
All parameters in [] are optional. Resutls are as arrays of objects.
db;
Insert document into collection
db;
Update document/s
db;// Example with result:db; // Example with result function:db; // Example without any function:db;
Remove a document/s
db;//Simple example of usagedb;
This is a quick start documentation, if any more detail needed please refer to the GitHub
page and let me know.