Is there any way I can use $where in aggregate.
my collection is {"id":5,score:70}, I tried {$match:{$where:"this.id>5&&this.score>70"}}, but it doesn't work, I have to use where as my api is ainterface to mong,which is receiving query from user in general text like "SQL", so is their any way I can use $where in aggregate because as document say, I cannot use it with $match, it works fine with normal find, but how to make it work with aggregate query?