How do you insert a “reference” value into firestore?

后端 未结 5 1252
无人及你
无人及你 2020-12-24 01:50

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

5条回答
  •  执念已碎
    2020-12-24 02:45

    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.

提交回复
热议问题