What I want is a query similar to MySQL as:
Select title,binary,hummingDistance(this.binary,"") as humDistance from Table order by humDistance desc limit 1
Here hummingDistance() is a MongoDB function I have created returns a value.
I am using PHP and also MongoDB Compass for testing. Thanks in advance.