vue
更新日:2019.04.27
作成日:2017.11.23
const word = "テスト"
const query = ({test: "/" + word + "/"})
testDB.find(query).function(err, item) {
//hogehoge
}
RegExp
を使うことで解決した。
var word = "テスト"
var query = ({test: new RegExp(".*" + word + ".*" , "i")})
testDB.find(query).function(err, item) {
//hogehoge
}
Related contents

TECH
2021.07.24
『Infrastructure as Code』

TECH
2020.07.24
Oracle Cloud Infrastructure
2017.11.23
zsh
2017.11.12
Ignition
2017.11.01
ge lean startup
2017.09.29
festival-of-xp-2017
2017.09.29
google container engine
2017.02.26
translate gohugo jp