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
TypeError: Invalid select() argument. Must be a string or object.
at Query.select (/Users/rav/MF/instarest/node_modules/mongoose/lib/query.js:1061:11)
at Function.findOne (/Users/rav/MF/instarest/node_modules/mongoose/lib/model.js:970:46)
at Model.populate [as _populate] (/Users/rav/MF/instarest/node_modules/mongoose/lib/model.js:139:6)
at next (/Users/rav/MF/instarest/node_modules/mongoose/lib/model.js:265:14)
at next (/Users/rav/MF/instarest/node_modules/mongoose/lib/model.js:228:57)
at next (/Users/rav/MF/instarest/node_modules/mongoose/lib/model.js:228:57)
at next (/Users/rav/MF/instarest/node_modules/mongoose/lib/model.js:228:57)
at next (/Users/rav/MF/instarest/node_modules/mongoose/lib/model.js:228:57)
at next (/Users/rav/MF/instarest/node_modules/mongoose/lib/model.js:228:57)
at next (/Users/rav/MF/instarest/node_modules/mongoose/lib/model.js:228:57)
Is it intended? How can I populate multiple fields?
The text was updated successfully, but these errors were encountered:
This works well in
mongoose@3.0.3
:But when I try:
It fails with:
Is it intended? How can I populate multiple fields?
The text was updated successfully, but these errors were encountered: