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