{"version":"1.0","type":"rich","title":"Batch Op","description":"This example shows a Firebase Cloud Function that automates the onboarding process for a venue, creating related service, promotion, and venue documents in Firestore while updating the original onboard record’s status. The code uses the Firebase Admin SDK, Firestore’s batch API for atomic writes, and the `uuid/v1` module to generate unique identifiers. It processes data based on status changes, retrying up to three times on failure, and handles both draft and completed states without reprocessing.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-912651350267c64c75aaa9129ef98d3b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}