feat(cosmos): support custom document IDs and partition keys
Merged
RE
2mo ago+300+300+012345678901234567890123456789-65-65-01234567890123456789
Currently, only custom partition keys are supported. This is a compilation-breaking change, since it changes the interface used to specify the partition key. The usage of that interface was broken in previous releases, and the fix is straightforward: change your implementation of IPartitionKeyProvider to IDocumentIdProvider. Then, if you do not wish to customize the document id, inject DefaultDocumentIdProvider and call GetId to get the document id.