node.js - Mongodb Find for Retrieving the Closest Larger / Closest Smaller Values from a List when there is No Exact Match? -


i have collection filed memory values (1,7,3.5,5) etc user query parameter memory contains 2, query result should (1,3.5) nearest matching value.

for more information please check https://gist.github.com/anandof86/5433086


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -