mongoose schema multiple types code example Example: mongoose schema multiple types { type: Schema.Types.Mixed }