I\'m running this code on node.js
var mongoose = require(\'mongoose\'); mongoose.model(\'participant\',new mongoose.Schema({},{ collection : \'forumParticipa
Partipant.find({entity_id: 0})
The above find() returns the array of documents from DB
You can access the value of each record
docs.map((d)=>{ console.log(d.get('user_id')) })