0

What i am implementing is a checkout, once the user checks out, I want to move all of the products in the collection "Cart " + user.id which I already have to the collection "orders" and delete the information from that specific cart. I have linked a picture of my firestore down.

Thanks!

FireStore Format CLICK HERE

  • Please do web searches to look for answers before posting to Stack Overflow. It's not possible to move documents in Firestore - you must query, iterate, and write the documents to a new collection, then delete the originals. – Doug Stevenson Jun 02 '22 at 12:15

0 Answers0