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
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework