Update method documentation

####Example: => Example:
This commit is contained in:
Daniel Kesselberg
2018-12-07 12:13:41 +01:00
committed by GitHub
parent 07c66081db
commit 0f73bf3034
+1 -1
View File
@@ -2026,7 +2026,7 @@ declare module "mongoose" {
* This is handy for integrating with async/await, because `orFail()` saves you
* an extra `if` statement to check if no document was found.
*
* ####Example:
* Example:
*
* // Throws if no doc returned
* await Model.findOne({ foo: 'bar' }).orFail();