Index
Variables
TIMESTAMP
TIMESTAMP:Object
A placeholder value for auto-populating the current timestamp (timesince the Unix epoch, in milliseconds) as determined by the Firebaseservers.
- example
var sessionsRef = firebase.database().ref("sessions");sessionsRef.push({startedAt: firebase.database.ServerValue.TIMESTAMP});
Functions
increment
- increment(delta: number):Object
Returns a placeholder value that can be used to atomically increment thecurrent database value by the provided delta.
Parameters
delta:number
the amount to modify the current value atomically.
ReturnsObject
a placeholder value for modifying data atomically server-side.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.