These are chat archives for Automattic/mongoose

11th
Jan 2019
Brenda
@thehme
Jan 11 16:12

hi all, i am working on implementing multi-level embedded discriminators in arrays and I am having issues. It seems like even though I am using a discriminator, when I save my top level object, the multi-level embedded object does not pick up the discriminated schema that is expected, based on the discriminator key. Has anyone worked on this that would give me some advice?

https://gist.github.com/thehme/be0774570eec8873cfc0c1ba3db6dd4a