title: Creating new collection in cloud firestore inside my code
body: <p>So I was just wondering if there is any way to automatically put a new sub collection in the firestore?</p>
  
  <p>Basically my data structure is the main collection 'matches' and then I wanted to create subcollections with names of the seasons such as 's2018', 's2019' etc...</p>
  
  <p>So instead of putting it all manually in the console. I wanted to create a button to add a new season on the website. I know it's easy to create a new document inside the collection but is there any way or code like addCollection() that I can use in my react application?</p>
  
  <p>Here is how my data is structured:</p>
  
  <p>Matches(main collection) -> seasons(several sub collections) -> match(document with the result of the match and teams)</p>
  
  <p>I'm looking for a code such as </p>
  
  <pre><code>db.collection.addCollection() 
  </code></pre>
  
  <p>or something in this particular type to create a new collection after filling up details and pressing the submit button.</p>