couchdb-net icon indicating copy to clipboard operation
couchdb-net copied to clipboard

Ability to make discriminator field name `split_discriminator` configurable

Open tjrobinson opened this issue 4 years ago • 2 comments

We have existing databases which contain multiple types. The database splitting feature allows for this to be possible. However, the field name is fixed to split_discriminator but we already have a field docType and would like to use this instead to avoid needing to update all existing documents.

Could this be made configurable somehow? If you can give me some pointers then I could try and create a PR.

Thanks!

tjrobinson avatar Nov 08 '21 15:11 tjrobinson

Hi, at the moment is not possible to configure it. I need time to investigate. something I can think about is a custom JSON converter for Flurl set on client creation via the options. But I don't know exactly at the moment

matteobortolazzo avatar Nov 08 '21 21:11 matteobortolazzo

I am working on the logging feature. I'll give a look at this after it. Unless you find a nice solution :)

matteobortolazzo avatar Nov 08 '21 21:11 matteobortolazzo