await model.photo.update({
_id: {
$in: photoIdsParam
}
}, {
$addToSet: {
customerIds: {
code: custCode,
isDel: 'true'
}
}
}, {
upsert: true
})
转载于:https://www.cnblogs.com/qiyc/p/9174608.html
await model.photo.update({
_id: {
$in: photoIdsParam
}
}, {
$addToSet: {
customerIds: {
code: custCode,
isDel: 'true'
}
}
}, {
upsert: true
})
转载于:https://www.cnblogs.com/qiyc/p/9174608.html