From a895902805d59c829d6589dba74adf1b35f6f5d8 Mon Sep 17 00:00:00 2001 From: Toby Hede Date: Sat, 28 Jan 2012 22:20:55 +1100 Subject: [PATCH] fixed doc for query dsl - fields should be passed a vector, not a map. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f21e04..1e370f8 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Here is what monger.query DSL feels like: ``` clojure (with-collection "docs" (find { :inception_year { $lt 2000 $gte 2011 } }) - (fields { :inception_year 1 :name 1 }) + (fields [ :inception_year :name ]) (skip 10) (limit 20) (batch-size 50)