With many of the different UI interactions implemented, we're finally ready to save our swipe information to Firestore. The main reason we want to do this is to detect matches as users input their swipes. In today's lesson, we'll simply save a new swipes collection in Firestore that will represent likes and dislikes. Enjoy.
Comments (4)
Zach Wilcox
4 years ago
do the buttons only save swipes?
Brian Voong
4 years ago
Zach Wilcox
4 years ago
I apologize I mean if the user swipes the card instead of hitting like, will that save as well?
Zach Wilcox
4 years ago
same as if the user was to swipe left instead of hitting the dislike button?
Brian Voong
4 years ago
Cinquain
4 years ago
Fire!
aputra
3 years ago
.setData(documentData, merge: true) should work if doc is not exists
luis525
3 years ago
Are we going to run into data problems at a larger scale given that a single document can only contain 1mb of data. For example if there were 5k users and you swipe each user wouldn't that exceed 1mb and as a result it won't record past the 1mb?