[Vuejs]-How to set up route parameters in Vue.js Express app

0👍

It seems the results aren’t returned because of ObjectId comparision not working. Creating new ObjectID using the id from req.params and then doing collection.find should bring back the results

var o_id = new mongo.ObjectID(req.params.id);)
collection.find({'_id': o_id});

Leave a comment