Hey @_3x
I think (could be wrong) by setting index
here.
authorPremium: {
type: Boolean,
default: false,
index:true
},
and the partial at the end is making 2 indexes. Maybe only do the one at the end with the partial filter.
I found a few stackover flows (including yours) about this.
Just want to make sure you are on a version of mongodb that supports partial filters. As Other than that I am not sure why the above is not working as expected.