I want to toggle a boolean field in mongodb.
This code works.
await User.findOneAndUpdate( { _id: req.params.id }, [{ $set: { blocked: { $not: