title: Access mongodb during meteor startup possible?
body: <p>is there a way to access the mongodb during the <code>Meteor.startup()</code></p>
  
  <p>I need to insert/update a document in a collection during the <code>Meteor.startup()</code></p>
  
  <p>I tried:</p>
  
  <pre><code>// https://www.npmjs.com/package/mongodb
  const MongoClient = require('mongodb').MongoClient; 
  
  // await may be missing but when i use await, i get a reserved keyword error
  const mongodb = MongoClient.connect(process.env.MONGO_URL)
  
  mongodb.collection('collection').insertOne(objectData)
  
  // Error
  // TypeError: mongodb.collection is not a function
  // at Meteor.startup (server/migrations.js:1212:23)
  
  </code></pre>
  
  <p>and</p>
  
  <pre><code>const col = Mongo.Collection('collection');
  
  // Error
  // TypeError: this._maybeSetUpReplication is not a function
  // at Object.Collection [as _CollectionConstructor] (packages/mongo/collection.js:109:8)
  
  </code></pre>
  
  <p>Anyone got a solution?</p>