You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the issue has not already been raised
Issue
Currently populate's behavior is not greatly documented for cases in which it fails, the documentation currently just says not populated, which could mean many things, so this issue proposes that the documentation would need to be updated.
Prerequisites
Issue
Currently
populate
's behavior is not greatly documented for cases in which it fails, the documentation currently just saysnot populated
, which could mean many things, so this issue proposes that the documentation would need to be updated.Current docs:
mongoose/lib/document.js
Lines 4181 to 4200 in 115f922
Things that should be changed / documented:
not populated
to actually say what type is expected in case it fails (like is itnull | undefined
, or the raw id).populate
call is (currently it is justPromise
)Document.prototype.populate
is (at least a bit) different fromQuery.prototype.populate
PS: some of those may be fixed by just using the
@see
tags from the jsdoc in the documentationThe text was updated successfully, but these errors were encountered: