title: Import data from Mongodb on GCE to Bigquery
body: <p>My task is to import data from a mongodb collection hosted on GCE to Bigquery. I tried the following. Since bigquery does not accept '$' symbol in field names, I ran the following to remove the $oid field, </p>
  
  <pre><code>mongo test --quiet \
    --eval "db.trial.find({}, {_id: 0})
                    .forEach(function(doc) {
                       print(JSON.stringify(doc)); });" \
    &gt; trial_noid.json
  </code></pre>
  
  <p>But, while importing the result file, I get an error that says</p>
  
  <blockquote>
    <p>parse error: premature EOF (error code: invalid)</p>
  </blockquote>
  
  <p>Is there a way to avoid these steps and directly transfer the data to bigquery from mongodb hosted on GCE?</p>