title: mongoexport fields from subdocuments to csv
body: <p>I am trying to export a field from a subdocument with no luck.<br>
  Here is my syntax;</p>
  
  <pre><code>mongoexport -d test -c accounts -f account_number,situses.coordinates -o coordinates.csv --type=csv  
  </code></pre>
  
  <p>The output includes the account_number but not the coordinates field from the subdocument.
  According to the <a href="http://docs.mongodb.org/manual/reference/program/mongoexport/#options" rel="nofollow">docs</a>, this is supposed to work.</p>
  
  <p>The following will export the entire situses subdocument, but I only want the one field.</p>
  
  <pre><code>mongoexport -d test -c accounts -f account_number,situses -o coordinates.csv --type=csv
  </code></pre>
  
  <p>Am I just referencing the subdocument field wrong or something?</p>
  
  <p>I'm running Mongodb 3.0.4</p>
  
  <p><strong>ADDITIONAL INFO</strong></p>
  
  <p>The following syntax worked on an earlier version of Mongodb (2.6.x ?).  Notice the <code>subdoc.0.fieldname</code> syntax.     </p>
  
  <pre><code>mongoexport -d test -c accounts -f account_number,situses.0.coordinates -o coordinates.csv --csv  
  </code></pre>
  
  <p>It appears support for directly referencing a subdocument has been removed.  </p>