Liking cljdoc? Tell your friends :D

monger.conversion

Provides functions that convert between MongoDB Java driver classes (DBObject, DBList) and Clojure data structures (maps, collections). Most of the time, application developers won't need to use these functions directly because Monger Query DSL and many other functions convert documents to Clojure sequences and maps automatically. However, this namespace is part of the public API and guaranteed to be stable between minor releases.

Related documentation guides:

Provides functions that convert between MongoDB Java driver classes (DBObject, DBList) and Clojure
data structures (maps, collections). Most of the time, application developers won't need to use these
functions directly because Monger Query DSL and many other functions convert documents to Clojure sequences and
maps automatically. However, this namespace is part of the public API and guaranteed to be stable between minor releases.

Related documentation guides:

* http://clojuremongodb.info/articles/inserting.html
* http://clojuremongodb.info/articles/querying.html
raw docstring

ConvertFromDBObjectcljprotocol

from-db-objectclj

(from-db-object input keywordize)

Converts given DBObject instance to a piece of Clojure data

Converts given DBObject instance to a piece of Clojure data

ConvertToDBObjectcljprotocol

to-db-objectclj

(to-db-object input)

Converts given piece of Clojure data to BasicDBObject MongoDB Java driver uses

Converts given piece of Clojure data to BasicDBObject MongoDB Java driver uses

ConvertToObjectIdcljprotocol

to-object-idclj

(to-object-id input)

Instantiates ObjectId from input unless the input itself is an ObjectId instance. In that case, returns input as is.

Instantiates ObjectId from input unless the input itself is an ObjectId instance. In that case, returns input as is.

FieldSelectorcljprotocol

as-field-selectorclj

(as-field-selector input)

Converts values to DBObject that can be used to specify a list of document fields (including negation support)

Converts values to DBObject that can be used to specify a list of document fields (including negation support)

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

× close