I want to export a single field from a single collection.
Like collection name is products and field name is tag.
All tag will create new collection. I have tried this command:
mongodump --host 192.168.1.46 --port 27017 --db myDb --collection products --fields tag -o bson --out C:\Users\Desktop\tag
mongodump doesn't support the selected field's backup. But you can use mongoexport/mongoimport to backup selected fields as: