We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2454f8 commit f967978Copy full SHA for f967978
listing-5.js
@@ -27,10 +27,10 @@ openDatabase()
27
.then(db => {
28
var query = { // Define our database query
29
Year: {
30
- $gte: 2005, // Year >= 2005
+ $gte: 2016, // Year >= 2016
31
},
32
};
33
- return db.collection.find(query) // Retreive records since the year 2005.
+ return db.collection.find(query) // Retreive records since the year 2016.
34
.toArray()
35
.then(data => {
36
console.log(data);
listing-7.js
@@ -27,7 +27,7 @@ openDatabase()
return db.collection.find() // Retreive only specified fields.
.sort({
- Precipitation: 1
+ Year: 1
})
0 commit comments