Introduction
Boolean and null types help store simple true/false values and empty or missing information in your data.
To mark if a user is active or inactive with true or false.
To show if a task is completed or not using true or false.
To represent missing or unknown data with null.
To check if a field has no value in a document.
To filter documents based on true/false or null values.