How to sort in mongoose by date but with priority for some records?

后端 未结 0 1077
星月不相逢
星月不相逢 2021-02-05 07:38

Let\'s say I have this schema and it has two fields

someDate: Date
isPriority: boolean

and I want to make a sort query by someDate <

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