I'm not sure when this has changed, but since the
overload has been marked as deprecated, I can't find a way to create a single unique index without using deprecated methods.
In fact, the suggested one only accepts a CreateOneIndexOptions, which doesn't contain a property for setting the index as unique.
Plus, I see no mention of this change in the package release notes, and the documentation still uses the methods that are marked as deprecated. This is very confusing.
Is there a reason why those methods were marked as obsolete? It seems that avoiding those only creates problems, because of missing properties and a more complex input type (CreateIndexModel instead of IndexKeysDefinition, but the first just wraps the second).