firebase-cljs Api Documentation

Version: 1.3.0

firebase-cljs.database.query

FirebaseDatabaseQuery

protocol

members

sort-by

(sort-by _ sort)(sort-by _ sort val)

Generates a new Query object ordered by the specified type.

take-last

(take-last _ limit)

Generates a new Query object limited to the last limit number of children.

take

(take _ limit)

Generates a new Query object limited to the first limit number of children.

to-str

(to-str _)

Returns string URL for this location.

start-at

(start-at _ val)(start-at _ val key)

Creates a Query with the specified starting point. The generated Query includes children which match the specified starting point.

equal-to

(equal-to _ val)(equal-to _ val key)

Creates a Query which includes children which match the specified value.

get-ref

(get-ref _)

Get Query ref.

end-at

(end-at _ val)(end-at _ val key)

Creates a Query with the specified ending point. The generated Query includes children which match the specified ending point.

off

(off _)(off _ event)(off _ event callback)(off _ event callback failure)

Detaches a callback previously attached with on.

once

(once _ event)(once _ event callback)(once _ event callback failure)

Listens for exactly one event of the specified event type, and then stops listening.

on

(on _ event)(on _ event callback)(on _ event callback failure)

Listens for data changes at a particular location.