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
Post a Comment