node.js - How a function can call another and pass the params in a mongoose Schema -


what way call getquery , pass requested params?

var place= require('../models/place.js');   findallplaces = function (req, res, next) {     place.getquery(req.query).exec(function(err, places) {     console.log(json.parse(json.stringify(places)));      res.send(places);     });      function getquery (rawparams) {     console.log(json.parse(json.stringify(rawparams)));     }  } 


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -