Use $in operator to match regex in mongoengine

后端 未结 0 553
逝去的感伤
逝去的感伤 2020-12-10 22:29

Following the MongoDB documentation, you can use the $in operator with a regular expression like wise db.inventory.find( { tags: { $in: [ /^be/, /^st/ ] } } )

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