How to export a single field from a collection in MongoDB?
<p>I want to export a single field from a single collection.
Like <em>collection name</em> is <em>products</em> and <em>field name</em> is <em>tag</em>.
<br>
All tag will create new collection. I have tried this command:  </p>

<pre><code>mongodump --host 192.168.1.46 --port 27017 --db myDb --collection products --fields tag -o bson  --out C:\Users\Desktop\tag
</code></pre>