i want to display the data from two different mongoose collection.
I have two collection which is Member collection and Property collection
here is my get code
const Property = require('../models/propsSchema')
const Members = require('../models/userSchema')
router.get('/', (req, res, next) => {
Members.find({})
Property.find({})
.exec()
.then((props, member) => {
console.log(props)
console.log(member)
res.render('index', { member : member, props : props } )
})
})
The console log result of "member" is undefined but the console log of "props" is the data of "Property". I want to fetch them both