1
字段的值赋给另一个假设你有一个蒙戈记录:如何在一个蒙戈查询
{
_id : 1234,
x: 12,
y: 34
}
我需要一个查询,将在这样一种方式更新特定_id是
x = y;//assign the value of y to x
y = new Date().getTime();//assign current time to y
对于特定的_id.current.current我正在读取修改实体和更新它的id。是否有可能在单个查询中做到这一点?什么是它使用猫鼬