'No SQL Query to retrieve min value of airTemperature
Here is the sample data collection:
I need NoSQL query to get the min of air temperature.
Here is the code I have written:
db.data.aggregate([{"$project": {"_id":1,"minofairtemperature": { $min : ["$airTemperature.value","$airTemperature.quality"]}}}])
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
