MongoDB/Mongoose: Sorting records in a way so that only records which matches an id comes first?

前端 未结 0 691
花落未央
花落未央 2021-01-07 15:53

I have a query which return me the records or messages for a certain scenario:

const [messages, messageCount] = await Promise.all([
    MessageModel.find(para         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题