TypeError: db.findWConditionandler is not a function MongoDB

后端 未结 1 1336
时光说笑
时光说笑 2021-01-27 09:57

This is actually a continuation of my previous question and I\'m reasking as I\'ve realised I didn\'t quite ask the question problem and now I have a different error response.

相关标签:
1条回答
  • 2021-01-27 10:40

    The problem is because .sort expects a cursor and .findOne() doesn't not give a cursor. Instead, one should use .find()

    0 讨论(0)
提交回复
热议问题