Exercise · How to Choose a Database · lesson 16 of 18
Exercise: the helpful vote
Every review has a "Helpful" button. The helpful field counts the votes, and the voters array keeps who has already voted. If the application first reads the review and then writes the vote, two quick taps are counted twice.