Liking cljdoc? Tell your friends :D

mongofinil.helpers


assert!cljmacro

(assert! expr & msg)

Asserts expr is truthy. Returns expr on success, or throws msg

Asserts expr is truthy. Returns expr on success, or throws msg
sourceraw docstring

coerce-object-idclj

(coerce-object-id id)

Casts id from a string to an ObjectId if necessary

Casts id from a string to an ObjectId if necessary
sourceraw docstring

eager-mapclj

(eager-map & args)
source

ensure-object-idclj

(ensure-object-id coll m)

Adds a mongo id to m, a clojure map, if it doesn't have one.

Adds a mongo id to m, a clojure map, if it doesn't have one.
sourceraw docstring

ensure-object-id-refclj

(ensure-object-id-ref coll m)

Same as ensure-object-id, but works on refs of maps.

Same as ensure-object-id, but works on refs of maps.
sourceraw docstring

has-object-id?clj

(has-object-id? m)

True if map m has a mongo id

True if map m has a mongo id
sourceraw docstring

object-idclj

(object-id & [id])

Generate a new object id, return it.

Generate a new object id, return it.
sourceraw docstring

object-id?clj

(object-id? o)

True if o is an object-id

True if o is an object-id
sourceraw docstring

ref?clj

(ref? val)

Returns true if val is a ref, false otherwise

Returns true if val is a ref, false otherwise
sourceraw docstring

seq1clj

(seq1 s)

Converts a normal seq, with chunking behavior, to one-at-a-time. See http://blog.fogus.me/2010/01/22/de-chunkifying-sequences-in-clojure/

Converts a normal seq, with chunking behavior, to one-at-a-time. See http://blog.fogus.me/2010/01/22/de-chunkifying-sequences-in-clojure/
sourceraw docstring

throw-ifcljmacro

(throw-if test & format-args)
source

throw-if-notcljmacro

(throw-if-not test & format-args)
source

throwfclj

(throwf & args)
source

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

× close