I'm working with Xamarin and firestore and I ran into a problem:
My firestore database is built like this:
I have a products collection, which contains documents of product.
and I also have a users collection, which contains documents of users, and each user has another collection of his Wishlist (a collection that contains products)
I want to enable each user to add products to his Wishlist collection while adding each product document to his personal Wishlist collection as a reference to the product in the main products collection: so that if a product in the main products collection gets edited (name changes, price ,etc..) the product in each user's Wishlist will get updated the same way.
Can some one help me with that? Thanks!
question from:
https://stackoverflow.com/questions/65863569/xamarin-how-set-and-retrieve-document-reference-in-another-collection 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…