Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のコレクションにある文書、
"info"{name : "sample"}, "extraInfo"{ tempCode :"1020200", newCode :"3844"}
newCode の長さが 3 より大きいすべてのドキュメントを取得したいdb.collection.find({$where:"this.extraInfo.newCode.length > 3"}) 。 { "code" : 16722 }
db.collection.find({$where:"this.extraInfo.newCode.length > 3"})
{ "code" : 16722 }