Skip to content

Glossary: Firebase and Supabase

FieldValue

Also written: increment, serverTimestamp

Special values for Firestore writes: `increment(1)` adds 1 to a stored number on the server, so simultaneous writes can't lose a count, and `serverTimestamp()` stores the server's time, so a wrong device clock doesn't matter. In the Admin SDK they live on `FieldValue`.

Where the book teaches it

Related terms

transaction