Skip to content

Glossary: MongoDB

MongoServerError

The error class the Node driver throws for server-side failures. Its `code` tells you which, such as 11000 for duplicate key, 121 for failed validation and 48 for NamespaceExists.

Where the book teaches it

Related terms

E11000