[MongoDB] explores several errors in the MongoDB authoritative guide.
I am going to learn more about MongoDB today. The document is the MongoDB authoritative guide. For details, see the following cover:
The following error was found during reading:
Article 1: Batch insert on page P29. The batchInsert function can be used in the book to implement batch insert. During running, I found that the system prompts that this method is not available. The software I use is 2.6.4. I thought the version was too low. Then I downloaded the latest version 2.6.6 for testing and reported the same error;
Property 'batchinsert 'of object student. students is not a function
Later, the command db. students. help () was used to query all methods of the set operation. The batchInsert method was not found;
Second place: P31 page, in the deletion speed, the last line to the last line. Db. tester. remove (), db. findOne ();
Db. findOne (); this method cannot be used here. If an error is reported directly according to this write, it should be written as db. tester. findOne ();
Page 3: P62, returns a matched array element: according to the operation in the book, an error is returned, and debugging fails:
My instance:
Postscript: I sincerely tell my friends who want to learn mongodb. Don't use this book as the learning material. There are many errors in the content. Please note that