Index
Variables
TIMESTAMP
Functions
increment
-
Returns a placeholder value that can be used to atomically increment the current database value by the provided delta.
Parameters
-
delta: number
the amount to modify the current value atomically.
Returns Object
a placeholder value for modifying data atomically server-side.
-
A placeholder value for auto-populating the current timestamp (time since the Unix epoch, in milliseconds) as determined by the Firebase servers.
var sessionsRef = firebase.database().ref("sessions"); sessionsRef.push({ startedAt: firebase.database.ServerValue.TIMESTAMP });