onWriteevent on the
/helloref. This function will execute any time any data changes on the
/helloref, including writes, updates and deletes.
onWrite()executes for any and all changes to the data tree including deletions... so use it wisely :)
/job-queues/image-resizing/and write a Cloud Function that resizes images. Crazy, right? You can create 100 image resizing jobs that Cloud Functions will execute as fast as it can, often running batches of jobs in parallel.
onWrite()is triggered for any and all changes including deletes.
onCreate()event to set custom attributes on our user's auth tokens. This method is known as custom claims, and it's extremely helpful for granting elevated privileges in Firebase, Firestore and Storage security rules.
.bucket('bucketName')function allows for filtering based on storage buckets