You can combine the ________ constraint with the sparse index to filter these null values from the unique index and avoid the error.
(a) Hashed
(b) Unique
(c) Sparse
(d) Compound
I had been asked this question in a job interview.
My query is from Index Properties in chapter Index/Indexing Concepts of MongoDB