To accomplish users not having more than 1 review, we will change the ID in mongodb to be generated using the following formula:
[Google Restaurant ID]:[Google Account ID]
This allows the ID to be unique yet recreatable and this is important because when you put another entry into mongodb with the same ID using upsert, it will just replace the entry which means that each restaurant/user combo can only happen once which implies 1 user review for each restaurant.
To accomplish users not having more than 1 review, we will change the ID in mongodb to be generated using the following formula:
[Google Restaurant ID]:[Google Account ID]
This allows the ID to be unique yet recreatable and this is important because when you put another entry into mongodb with the same ID using upsert, it will just replace the entry which means that each restaurant/user combo can only happen once which implies 1 user review for each restaurant.