I want to add the unique index to a field ignoring null values in the unique indexed field and ignoring the documents that are filtered based on partialFilterExpression.
{ "YourField" : { "$exists" : true, "$gt" : "0", "$type" : "string" } }