$toggle
Update records by toggling a boolean value in a specified column. The $toggle method is used to switch the value of a boolean field between true and false. If the current value is true, it will be changed to false, and vice versa. This is useful when you need to flip the state of a flag or condition, such as enabling or disabling a feature, without manually checking or setting the value.
Last updated