Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var temp = '{$and:[{"category.path": /,Mobiles & Accessories,Mobiles,/},{$or: [{"specification.general.brand": "Micromax"},{"specification.general.brand":"Nokia"}]}]}';
- Products.find(temp, function(err, productData) {
- if (err) {
- return res.send({info: "Opps sorry"});
- }
- else {
- //console.log(productData);
- for (i in productData) {
- console.log(productData[i].name);
- }
- res.json({deals: productData});
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement