1.0.3 • Published 2 years ago

go-mongodb v1.0.3

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

REPO

MongoDb simple read/write ops

Installation

$ npm install go-mongodb

Example (test.js)

#!/usr/local/bin/node
// test.js

const config = {
    domain: 'localhost',
    port: 12093,
    dbN: '<dbName>',
    clN: '<collectionName>',
};

const main = async () => {

    const mongodb = await require('go-mongodb')(config);
    const res = await mongodb.query({}, {});
    console.log(`res: ${JSON.stringify(res)}`);

};

main();
1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago