title: How to retrieve all Meteor Mongo collection names as Javascript array?
body: <p>I tried to use:</p>
  
  <pre><code>MongoInternals.defaultRemoteCollectionDriver().mongo.db.listCollections()
  </code></pre>
  
  <p>in order to get all collection names in meteor database, but it returns a very long JSON, in which i couldn't find the pure collection names. (see the attached image)</p>
  
  <p><a href="https://i.stack.imgur.com/IreNZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IreNZ.png" alt="enter image description here"></a></p>
  
  <p>How can I get meteor collection names in a following format:</p>
  
  <pre><code>["test1", "test2", "users"...]
  </code></pre>