0.0.8 • Published 5 years ago

mongodb-get-props v0.0.8

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

Build Status

install

npm i mongodb-get-props --save

usage

const getProps = require('mongodb-get-props')

;(async () => {

  const MongoClient = require('mongodb').MongoClient;

  const uri = 'mongodb://localhost:27017/db'

  const client = await MongoClient.connect(uri,{ useNewUrlParser: true });

  // database and collection name
  await getProps(client.db('project'), 'song')

  // sample output
  {
    __v: 'int',
    _id: 'objectId',
    artist_name: 'string',
    created_at: 'date',
    track_name: 'string',
    updated_at: 'date'
  }

})();
0.0.8

5 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago