Skip to content

Instantly share code, notes, and snippets.

@notdrone
Created December 21, 2015 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notdrone/892585c527ac2ebd41ff to your computer and use it in GitHub Desktop.
Save notdrone/892585c527ac2ebd41ff to your computer and use it in GitHub Desktop.
firebas write/remove methods
setValue() writes/ replces data at the specified path replacig any data
at that path
updateChildren() write to specific childern of a parent node but without overwriting
other child nodes
push() add to list of data a. A unique id is generated by push depending
on the timestamp
runTransaction() used in ase of a counter, when seeralpeople update the same list
removeValue() allows to remove data ata specfic location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment