MongoDB: db.getPrevError() method
db.getPrevError
The db.getPrevError() method is used to return a status document containing all errors since the last error reset.
Syntax:
db.getPrevError()
Example: MongoDB: db.getPrevError() method
The following statement will return the status document containing all errors since the last error reset.
db.getPrevError();
Output:
> db.getPrevError(); { "err" : null, "n" : 0, "nPrev" : -1, "ok" : 1 }
Retrieve the restaurants data from here
Previous:
db.getName() method
Next:
db.getProfilingStatus() method
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join
We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook