tutorial: add hint about binding allDocs to find

This commit is contained in:
Scott R. Parish 2010-03-01 08:28:38 -06:00
parent cd4be93a02
commit 52bf1f6716

View file

@ -106,7 +106,11 @@ Querying for More Than One Document
> allDocs cursor > 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. * Note: allDocs automatically closes the cursor when done, through nextDoc.