I have a simple API call to mongoDB that shows me all the entries, it works perfectly and looks like this:
MongoClient.connect(url, function(err, db) {
if (err) return res.json("Error:Database Connection error" );
var dbo = db.db("radar");
var query = { };
dbo.collection("changes").find(query).toArray(function(err, result) {
if (err) return res.json("Error:Database error" );
res.json( result );
db.close();
After googling, I can't seem to find a query to only show entries after a specific date, or even todays date. Can anybody assist?
JUST FYI, data:
data = {
"change_number": "CRQ91320s23",
"change_description": "Nexus work",
"date": "2/10/2020",
"changeowner" : "Jeffre Hocking",
"implementer" : "nathan",}