How to implement schema subtypes in mongoose?

I.e. the scheme documents which may be of different type and different or same fields depending on type.

For example I have a transaction that has common fields: amount, date and type.
The type can be the parish, flow or transfer. And depending on the type of document can be of different fields, characteristic only of one type.

Income and expenditure: account name, account category ...
Transfer: account name where account name where ...

PS. I tried to use a Discriminator keys, which creates three subtypes, each has its own scheme, but did not come because there were problems with the common queries and the ability to change the schema when you update( you can't just change the document from one type to another, it is necessary to remove it, then create again but from a different schema )
July 8th 19 at 16:11
1 answer
July 8th 19 at 16:13
How about a General scheme, "insert" in the object of reference? That is, different schemes refer to the General.

Find more questions by tags DatabasesMongooseMongoDB