How to get a field value from a collection in shell db script?
Answers
Rahul M...
4916
Points
27
Posts
|
Use projection in db.collection.find() as something:
And then use like following:
Reference: https://docs.mongodb.com/manual/reference/method/db.collection.find/
Posted On:
06-Aug-2021 23:21
Thanks - mongo 09-Aug-2021 20:48
|