I have an App where the user can buy Tickets. And in Firestore the Tickets are represented by documents so each ticket has it's own document. What I want to do is when the user wants to buy 5 Tickets I need a way to pick 5 random documents where the status is available and set them to sold. Is there a specific way to do that?
Aucun commentaire:
Enregistrer un commentaire