install
npm i mongodb-get-props --save
usage
const getProps = ;async { const MongoClient = MongoClient; const uri = 'mongodb://localhost:27017/db' const client = await MongoClient; // database and collection name await // sample output __v: 'int' _id: 'objectId' artist_name: 'string' created_at: 'date' track_name: 'string' updated_at: 'date' };