title: How to rename a "main" document with several fields and collections (object) in Firebase?
body: <p>The question in the title actually already has an answer. You cannot. At least not without a work-around.
  The way to "rename" a document would be to get a copy of all of its contents and store it under a new (= renamed) id.</p>
  
  <p>Below is a simplified example for my issue:</p>
  
  <p><a href="https://i.stack.imgur.com/7r5vt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7r5vt.png" alt="Example"></a></p>
  
  <p>Let's say the documents under the "cars" collection are named according to the license number of the car.  There is a typo in the license number, and now we need to correct it (= rename it).</p>
  
  <p>What is the best and most efficient way to get ALL the contents of e.g. CAR-001 and set them as a new document? There are several data fields directly under the document, as well as several collections with different documents.</p>