firebase-cljs Api Documentation

Version: 1.3.0

firebase-cljs.database.reference

FirebaseDatabaseReference

protocol

members

remove!

(remove! _)(remove! _ callback)

Removes the data at this Firebase location.

get-key

(get-key _)

The key of a given reference.

set-with-priority!

(set-with-priority! _ val priority)(set-with-priority! _ val priority callback)

Writes data to this Firebase location. Like set() but also specifies the priority for that data.

get-parent

(get-parent _)

The parent reference of a given reference.

on-disconnect

(on-disconnect _)

Returns onDisconnect object.

transaction

(transaction _ update)(transaction _ update callback)(transaction _ update callback locally)

Atomically modifies the data at this location.

get-root

(get-root _)

The root of a given reference.

set!

(set! _ val)(set! _ val callback)

Writes data to this Firebase location.

push!

(push! _)(push! _ val)(push! _ val callback)

Generates a new child location using a unique key and returns a Firebase reference to it.

set-priority!

(set-priority! _ priority)(set-priority! _ priority callback)

Sets a priority for the data at this Firebase location.

get-child

(get-child _ child)

Returns the child as a Reference.

update!

(update! _ obj)(update! _ obj callback)

Writes the enumerated children to this Firebase location.