[MongoDB] explores several errors in the MongoDB authoritative guide.

Source: Internet
Author: User
Tags findone

[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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.