From ab209ca91b5a141a7bd870233f33c473cc44819f Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Mon, 14 Nov 2011 15:22:12 +0400 Subject: [PATCH] Add monger.query DSL example to the README --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index e7e3dab..fe1de09 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,21 @@ wanted a client that will We are working on documentation guides & examples site for the 1.0 release. Please refer to the test suite for code examples. +Here is what monger.query DSL looks like right now: + +``` clojure +(with-collection "docs" + (find { :inception_year { $lt 2000 $gte 2011 } }) + (fields { :inception_year 1 :name 1 }) + (skip 10) + (limit 20) + (batch-size 50) + (hint "my-index-name") + (snapshot)) +``` + +More code examples can be found in our test suite. + ## This is a Work In Progress