Created
May 11, 2020 15:01
-
-
Save tandavala/834787dc8961e6e2cfd9b96ac1d4a005 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
router.route('/fetchdata').get(function(req,res){ | |
employees.find( {{"age" : {$gt : 25}}, function(err, result){ | |
if(err){ | |
res.send(err) | |
} | |
else{ | |
res.send(result) | |
} | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment