mongoose icon indicating copy to clipboard operation
mongoose copied to clipboard

Is it possible to have multi-key discriminators?

Open GCastilho opened this issue 4 years ago • 2 comments
trafficstars

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

Currently, we can only have one key as the discriminator key, but as discussed in #5846 (I think it was closed by accident) it seems like a nice feature

What is the expected behavior?

The possibility to use multiple keys as discriminators to track "sub-versions" of a discriminator. It's kind of related to #2851 since it would allow the use of multiples discriminators on the same document

Are there any plans for implementing this in the future?

GCastilho avatar Jan 01 '21 05:01 GCastilho

No plans currently, but this is an interesting idea. We will consider it for a future release.

vkarpov15 avatar Jan 01 '21 17:01 vkarpov15

Hi, @vkarpov15

Is there any update on this?

parth-007 avatar Dec 28 '22 09:12 parth-007