Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
278 views
in Technique[技术] by (71.8m points)

visual studio - Xamarin - How set and retrieve document reference in another collection

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...