mongodb - MONGO DB Alias name usage in find query not working -


i using below command find records in contacts collection's

db.contacts.find({"field1":"1"}) 

the problem want use alias name field1 sl.no

i tried way , not working...

db.contacts.find({"field :n, as: :sl.no" : "1"} 

can anyne me in issue?

btw using mongo 1.6.5

some drivers mongoose support feature, there no such feature in mongodb or mongo shell.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -