title: Create a collection in mongodb stitch app
body: <p>Is there a way to create a collection in MongoDB stitch app in react-native. I tried the normal MongoDB way </p>
  
  <pre><code>const stitchClient = Stitch.getAppClient(myAppID);
  const mongodb = stitchClient.getServiceClient(RemoteMongoClient.factory, "mongodb-atlas")
      .db("ToDo");
          // console.log("mongodb is ", mongodb);
  mongodb.createCollection("test", (err, res) =&gt; {
     if (err) {
         throw ("Error creating a collection : ", err);
     }
     console.log("Collection creted");
  });
  
  </code></pre>
  
  <p>But then react-native keeps giving this error :</p>
  
  <blockquote>
    <p>TypeError: undefined is not a function(near 'MongoDB.createCollection...')</p>
  </blockquote>