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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -