How to find the duplicate values in a document

Hi All,

I just need to syntax to find the duplicate values(null) where my collection huge duplicate values.
How to identify that documents whether the document has duplicate values or not?

Give us better examples. Is it duplicate values in an array field, different field names containing null values,… what exactly?

Let’s see some examples