Check out example codes for "get range of values in mongodb". It will help you in understanding the concepts better.

Code Example 1

db.student.find({ u1 : { $gt :  30, $lt : 60}});

Learn ReactJs, React Native from akashmittal.com