A more strict form of UpdateQuery that enforces updating only known top-level properties.
function updateUser(_id: mongoose.Types.ObjectId, update: UpdateQueryKnownOnly<IUser>) { return User.updateOne({ _id }, update);} Copy
function updateUser(_id: mongoose.Types.ObjectId, update: UpdateQueryKnownOnly<IUser>) { return User.updateOne({ _id }, update);}
Generated using TypeDoc
A more strict form of UpdateQuery that enforces updating only known top-level properties.