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.
mongoose を使用して MongoDB の行を更新しようとしています。一意のアカウント番号を渡しますが、この行を更新できません。
this.update({account_no:key},{valid:'true'},{ upsert: true }, function(){});
これの何が問題なのですか?
ありがとう、
してみてください
this.update({account_no:key}, { $set: { valid: 'true' }},{ upsert: true }, function(){});
$set in update パラメータを使用します。それかもしれません!