From 0aa99ffbc5c8370ed1f1f8a2ce2526613853c4b4 Mon Sep 17 00:00:00 2001 From: Michael Jansen Date: Fri, 13 Apr 2018 10:00:32 -0400 Subject: [PATCH] add documentation not to use getMore with db.command --- src/database.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/database.rs b/src/database.rs index 18bdb1a..c037c53 100644 --- a/src/database.rs +++ b/src/database.rs @@ -48,6 +48,8 @@ impl<'a> Database<'a> { /// Execute a command on the database. /// This is performed lazily and therefore requires calling `next` on the resulting cursor. + /// Results are returned in batches as per the mongoc driver. + /// To get the next batch: https://docs.mongodb.com/manual/reference/command/getMore/ pub fn command( &'a self, command: Document,