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
Post a Comment