Answer the question
In order to leave comments, you need to log in
Is it possible to update the document somehow in a similar way?
const User = {
username: { isActive: true, value: 'qsd' },
energy: {
count: 5,
date: 1609284531
},
right: 'user',
_id: "5febbbb3dc6c99bc613331df"
}
await userScheme.updateOne({ _id: User._id }, {
User
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question