当前位置:Gxlcms > 数据库问题 > mongodb更新器

mongodb更新器

时间:2021-07-01 10:21:17 帮助过:25人阅读

if an update results in an insert of a document. Has no effect on update operations that modify existing documents. $set Sets the value of a field in a document. $unset Removes the specified field from a document. $min Only updates the field if the specified value is less than the existing field value. $max Only updates the field if the specified value is greater than the existing field value. $currentDate Sets the value of a field to current date, either as a Date or a Timestamp.

https://docs.mongodb.com/manual/reference/operator/update-field/

mongodb更新器

标签:tip   ref   pre   des   manual   modify   log   mongo   name   

人气教程排行