Method

onWrite

onWrite(handler) returns functions.CloudFunction containing non-null functions.database.DeltaSnapshot

Event handler that fires every time a Firebase Realtime Database write occurs.

Parameter

handler

function(non-null functions.Event containing non-null functions.database.DeltaSnapshot)

Event handler which is run every time a Firebase Realtime Database write occurs.

Value must not be null.

Returns

non-null functions.CloudFunction containing non-null functions.database.DeltaSnapshot A Cloud Function which you can export.