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.