I\'m trying to insert a document into a collection. I want the document to have a attribute of type reference to insert into the collection. But every time I in
The value of the field must be of type DocumentReference. It looks like you're putting some other object in there that has a property called id that's a string.