Liking cljdoc? Tell your friends :D

firestore-clj.core


->atomclj

(->atom q)
(->atom q error-handler)

Returns an atom holding the latest value of a DocumentReference or Query.

Returns an atom holding the latest value of a DocumentReference or Query.
sourceraw docstring

add!clj

(add! c m)

Adds a document to a collection. Its id will be automatically generated.

Adds a document to a collection. Its id will be automatically generated.
sourceraw docstring

add-listenerclj

(add-listener q f)

Adds a snapshot listener to a DocumentReference or Query.

Listener is a fn of arity 2. First arg is the QuerySnapshot, second arg is a FirestoreException. Returns an ListenerRegistration object.

Adds a snapshot listener to a DocumentReference or Query.

Listener is a fn of arity 2. First arg is the QuerySnapshot, second arg is a FirestoreException.
Returns an ListenerRegistration object.
sourceraw docstring

array-removeclj

(array-remove & vs)

Used with set! and merge!. Removes values from an array field.

Used with `set!` and `merge!`. Removes values from an array field.
sourceraw docstring

array-unionclj

(array-union & vs)

Used with set! and merge!. Adds unique values to an array field.

Used with `set!` and `merge!`. Adds unique values to an array field.
sourceraw docstring

assoc!clj

(assoc! d & kvs)

Associates new keys and values.

Associates new keys and values.
sourceraw docstring

client-with-credsclj

(client-with-creds creds-path)

Creates a client from a credentials JSON file.

Creates a client from a credentials JSON file.
sourceraw docstring

collectionclj

(collection db coll-name)

Returns a CollectionReference for the collection of given name.

Returns a CollectionReference for the collection of given name.
sourceraw docstring

default-clientclj

(default-client project-id)

Gets default client i.e. using a service account.

Gets default client i.e. using a service account.
sourceraw docstring

deleteclj

(delete)

Used with set! and merge!. A sentinel value that marks a field for deletion.

Used with `set!` and `merge!`. A sentinel value that marks a field for deletion.
sourceraw docstring

delete!clj

(delete! d)

Deletes a document.

Deletes a document.
sourceraw docstring

detachclj

(detach a)

Detaches an atom built with ->atom.

Detaches an atom built with ->atom.
sourceraw docstring

dissoc!clj

(dissoc! d & ks)

Deletes keys.

Deletes keys.
sourceraw docstring

documentclj

(document c id)

Gets a document from a collection reference.

Gets a document from a collection reference.
sourceraw docstring

filter-containsclj

(filter-contains q field value)

Filters where field contains value.

Filters where field contains value.
sourceraw docstring

filter-contains-anyclj

(filter-contains-any q field arr)

Filters where field contains one of the values in arr.

Filters where field contains one of the values in arr.
sourceraw docstring

filter-inclj

(filter-in q field arr)

Filters where field is one of the values in arr.

Filters where field is one of the values in arr.
sourceraw docstring

filter<clj

(filter< q field value)

Filters where field < value.

Filters where field < value.
sourceraw docstring

filter<=clj

(filter<= q field value)

Filters where field <= value.

Filters where field <= value.
sourceraw docstring

filter=clj

(filter= q m)
(filter= q field value)

Filters where field = value. A map may be used for checking multiple equalities.

Filters where field = value. A map may be used for checking multiple equalities.
sourceraw docstring

filter>clj

(filter> q field value)

Filters where field > value.

Filters where field > value.
sourceraw docstring

filter>=clj

(filter>= q field value)

Filters where field >= value.

Filters where field >= value.
sourceraw docstring

idclj

(id d)

Returns the id of a document, given a reference.

Returns the id of a document, given a reference.
sourceraw docstring

incclj

(inc v)

Used with set! and merge!. Increments a numeric field.

Used with `set!` and `merge!`. Increments a numeric field.
sourceraw docstring

merge!clj

(merge! d m)

Updates fields of a document.

Updates fields of a document.
sourceraw docstring

order-byclj

(order-by q & ordering)

Orders by a sequence of fields with optional directions. Notice that ordering by multiple fields requires creation of a composite index.

Orders by a sequence of fields with optional directions. Notice that ordering by multiple fields
requires creation of a composite index.
sourceraw docstring

pullclj

(pull q)

Pulls data from a DocumentReference or Query.

Pulls data from a DocumentReference or Query.
sourceraw docstring

server-timestampclj

(server-timestamp)

Used with set! and merge!. Timestamp for when the update operation is performed on server.

Used with `set!` and `merge!`. Timestamp for when the update operation is performed on server.
sourceraw docstring

set!clj

(set! c doc-name m)

Creates or overwrites a document.

Creates or overwrites a document.
sourceraw docstring

snapshot->dataclj

(snapshot->data s)

Gets a DocumentSnapshot/CollectionSnapshot/QuerySnapshot's underlying data.

Gets a DocumentSnapshot/CollectionSnapshot/QuerySnapshot's underlying data.
sourceraw docstring

takeclj

(take q n)

Limits results to a certain number.

Limits results to a certain number.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close