0.1.5 • Published 2 years ago

mongocaller v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

mongocaller

Mongocaller is a module that makes it easy for mongoDB users to implement some CRUD methods

Installation

Use the package manager npm to install mongocaller.

npm install mongocaller

Usage

import { AddTo_DB, IsExist_DB, FindAll_DB, FindAllDesc_DB, UpdateTo_DB, DeleteFrom_DB, Aggregate_DB }  from 'mongocaller'


# returns 'Add the new informations to the DB model'
AddToDB(modelname, { informations })

# returns 'Check if filters exist in the DB model'
IsExist_DB(modelname, { filter })

# returns 'Find all data that exist in the DB model'
FindAll_DB(modelname, filter)

# returns 'Find all data that exist in the DB model in Descending order'
FindAllDesc_DB(modelname, filter)

# returns 'Update informations on the DB model'
UpdateTo_DB(modelname, filter, updates)

# returns 'Update informations on the DB model'
UpdateTo_DB(modelname, filter, updates)

# returns 'Delete informations from the DB model'
 DeleteFrom_DB(modelname, filter)

# returns 'Perform aggregate searching on the DB model, pass in the the match (if no match pass in {}), group and projection parameters'
Aggregate_DB(modelname, match, group, project)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Creator

This modules was created by Ibrahim Habib, Link up with me if you have any issue while using the modules, Thanks.

License

MIT

0.1.5

2 years ago

0.1.6

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago