I had hunt with this error: node js mongodb remove error "key $lte must not start with '$'", but that did not helped me.
I am doing following query
coll.remove({ _id : { '$ne' : SomeId }, blah : blaVal });
But that gives the error :
key $ne must not start with '$'
I have started facing this issue, when i migrated mongodb 2.4 to 2.6
My configs are:
nodejs : 0.10
mongodb : 2.6.8 (no issues with 2.4.x)
mongodb driver (npm package version) : 2.1.3 (have tried with 1.4.x and 1.3.x, but error is still there, even emptying node_modules and again `npm install`)
What should I do to resolve the issue?