How can I save a document reference from a dropdown?

I'm using Firebase.

I have a Document called users, where I have an attribute called store_ref. I would like to save the Stores document reference in it.

To do this, I am using a dropdown, where I assign a query collection to search for the list of stores. In values, assign the Document Reference ID and in Labels, assign the name of each store.

However, in the values ​​it only returns a string, which produces the error that does not allow the project to be compiled.

So what would be the best way to save this reference?

3
12 replies