I am student and currently working on an assignment regarding the development of APIs endpoints and queries on a given data from weather stations. The data is stored in collections of a NoSQL database in JSON.
One endpoint I am currently stuck at, is getting the value of the precipitations recorded in the last 5 years.
I thought using a map() method to screen the values of the last 5 years time, but so far I ended up nowhere.
Does somebody have a hint where to look at in terms of method to adopt for the case study?
Many thanks in advance for your support