firebase-cljs Api Documentation

Version: 1.3.0

firebase-cljs.database.datasnapshot

FirebaseDatabaseDataSnapshot

protocol

members

child

(child _ child)

Get child DataSnapshot from DataSnapshot.

for-each

(for-each _ action)

Enumerate the top-level children in the DataSnapshot.

exists

(exists _)

Returns True if val != Null.

children?

(children? _)

Returns True if DataSnapshot has children.

key

(key _)

Get DataSnapshot key.

ref

(ref _)

Get DataSnapshot ref.

val

(val _)

Convert the DataSnapshot to a Javascript value (number, boolean, string, Object, Array or null).

get-priority

(get-priority _)

Returns priority value as String, Number or Null.

count-children

(count-children _)

Returns children count.

child?

(child? _ child)

Returns True if DataSnapshot has child.