From 1961aa71571fe21d01e32aa1aba51442d28be1e2 Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Sun, 12 Feb 2012 10:15:45 +0400 Subject: [PATCH] ChangeLog update [ci skip] --- ChangeLog.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index b99afc4..5a1248a 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -21,3 +21,18 @@ If you need to use `keywordize`, use 4-arity: ``` clojure (monger.collection/find-one-as-map "documents" { :first_name "John" } [:first_name, :last_name, :age] false) ``` + + +### Query DSL has a way to specify if fields need to be keywordized + +It is now possible to opt-out of field keywordization in the query DSL: + +``` clojure +(with-collection coll + (find {}) + (limit 3) + (sort { :population -1 }) + (keywordize-fields false)) +``` + +the default value is still true, field names will be converted to keywords.