I\'ve looked over hours of code and notes and I\'m struggling to find any documentation that would help me with upvoting and downvoting an object in a swift app with firebas
Not a Swift fella myself (pun!) but I think this stackoverflow question has most of your answers.
Then you would simply use a couple of if statements to return the correct value from the transaction based on whether you want to up vote or down vote.