I want to make the key of the object from query params in the model.find method.
I have already tried this:
moongoose.model.find({ req.query.type : req.params.tid})
and this:
let type = req.query.type
moongoose.model.find({type : req.params.tid})