firemore.firestore

active-transactions

add-db!

(add-db! reference collection value)(add-db! reference collection value options)

add-limit-to-ref

(add-limit-to-ref ref query)

add-order-to-ref

(add-order-to-ref ref query)

add-reference-to-transaction

(add-reference-to-transaction transactions trx reference)

add-where-to-ref

(add-where-to-ref ref query)

build-path

(build-path fb path)

build-query

(build-query fb path query)

chan->promise

(chan->promise c)(chan->promise c reject?)(chan->promise c reject? finally-fx)

clojurify

(clojurify json-document)

commit-batch!

(commit-batch! btx)

convert-if-string

(convert-if-string order-expression)

create-batch

(create-batch)(create-batch fb)

default-options

(default-options)

delete-db!

(delete-db! reference)(delete-db! reference options)

doc-upgrader

(doc-upgrader reference doc)

expand-order

(expand-order order)

expand-query

(expand-query query)

expand-where

(expand-where where)

filter-by-query

(filter-by-query ref query)

get-db

(get-db reference)(get-db reference options)

index-of-transaction

(index-of-transaction transactions trx)

jsonify

(jsonify value)

keywordize->str

(keywordize->str k)
Mirror function for str->keywordize

listen

(listen reference)(listen reference options)

merge-default-options

(merge-default-options options)

noop-unwritten-reads!

(noop-unwritten-reads! transactions trx)

promise->chan

(promise->chan promise)(promise->chan promise on-success)(promise->chan promise on-success on-failure)

ref

(ref path)(ref fb path)
Convert a firemore reference to a firebase reference

remove-reference-from-transaction

(remove-reference-from-transaction transactions trx reference)

remove-transaction-from-transactions

(remove-transaction-from-transactions transactions trx)

replace-timestamp

(replace-timestamp m)
Replace `config/TIMESTAMP (keyword) with firebase Server Timestamp

server-timestamp

set-db!

(set-db! reference value)(set-db! reference value options)

shared-db

(shared-db fb reference)(shared-db fb reference value)

snapshot-handler

(snapshot-handler collection? c reference snapshot)

snapshot-listen-options->js

(snapshot-listen-options->js options)

str->keywordize

(str->keywordize s)
If s begins with ':' then convert into a keyword, else returns 's

transact-db!

(transact-db! update-fx)(transact-db! update-fx options)

unlisten-db

(unlisten-db {:keys [unsubscribe]})

update-db!

(update-db! reference value)(update-db! reference value options)