These are chat archives for Automattic/mongoose

10th
Feb 2019
Arnaud Castellanos Galea
@Arnaz87
Feb 10 04:11
Is it possible to have polymorphic schemas? So that I can have a field that can have any type of, say, a vehicle, without having to store them in a separate model collection
I don't mind having a discriminator field in the schemas, nor not having common field or inheritance, I just need to store many related schemas in a single key without an additional model
Arnaud Castellanos Galea
@Arnaz87
Feb 10 18:35