From 52bf1f6716b989ae3cf1b074271161b723be58b2 Mon Sep 17 00:00:00 2001 From: "Scott R. Parish" Date: Mon, 1 Mar 2010 08:28:38 -0600 Subject: [PATCH] tutorial: add hint about binding allDocs to find --- tutorial.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tutorial.md b/tutorial.md index 53a603a..5e67979 100644 --- a/tutorial.md +++ b/tutorial.md @@ -106,7 +106,11 @@ Querying for More Than One Document > allDocs cursor - See nextDoc to modify cursor incrementally one at a time. +You can combine these into one line: + +> docs <- allDocs =<< find con curcol (toBsonDoc [("author", toBson "Mike")]) + +See nextDoc to modify cursor incrementally one at a time. * Note: allDocs automatically closes the cursor when done, through nextDoc.