You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently each visit doc stores a entire copy of the restaurant details in restaurant_info which means that if a restaurant in the root level restaurants collection is ever updated, the data in the visit docs becomes stale.
Write a onRestaurantUpdate cloud function which updates the restaurant_info across all visit docs in all users when a restaurant in the root level restaurants collection is updated.
The text was updated successfully, but these errors were encountered:
Currently each
visit
doc stores a entire copy of the restaurant details inrestaurant_info
which means that if a restaurant in the root levelrestaurants
collection is ever updated, the data in thevisit
docs becomes stale.Write a
onRestaurantUpdate
cloud function which updates therestaurant_info
across all visit docs in all users when a restaurant in the root levelrestaurants
collection is updated.The text was updated successfully, but these errors were encountered: