title: How do you insert a "reference" value into firestore?
body: <p>I'm trying to insert a document into a collection. I want the document to have a attribute of type <code>reference</code> to insert into the collection. But every time I insert into the collection, it comes out as a string or an object. How can I programmatically insert a <code>reference</code> typed value?</p>
  
  <p><a href="https://i.stack.imgur.com/Cg3ua.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Cg3ua.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>It's definitely possible to do it in the UI:</p>
  
  <p><a href="https://i.stack.imgur.com/37ITi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/37ITi.png" alt="enter image description here"></a></p>