Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit c81f609

Browse files
committed
fix(get-more): documents are already returned as raw in this case
1 parent e7e1775 commit c81f609

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/wireprotocol/get_more.js

-7
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ function getMore(server, ns, cursorState, batchSize, options, callback) {
3737
return;
3838
}
3939

40-
// Raw, return all the extracted documents
41-
if (cursorState.raw) {
42-
cursorState.documents = response.documents;
43-
cursorState.cursorId = response.cursorId;
44-
return callback(null, response.documents);
45-
}
46-
4740
// We have an error detected
4841
if (response.documents[0].ok === 0) {
4942
return callback(new MongoError(response.documents[0]));

0 commit comments

Comments
 (0)