mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Update method documentation
####Example: => Example:
This commit is contained in:
Vendored
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user