想查找下图的内容,但是不知道要怎么操作
db.collection( 'readyToPub' ).where(_.or([ { //下面这一句应该要怎么改? content:db.RegExp({ regexp:theWords, //要查找的字符 options: 'i' }) } ])) |
想查找下图的内容,但是不知道要怎么操作
db.collection( 'readyToPub' ).where(_.or([ { //下面这一句应该要怎么改? content:db.RegExp({ regexp:theWords, //要查找的字符 options: 'i' }) } ])) |
1 个回答
'content.title':db.RegExp({ regexp:theWords, options:'i' })