var mongoose = require('mongoose');

var schema = new mongoose.Schema({
	arrayProp: Array,
	arrayTypedProp: [{
		type: Object
	}],
	booleanProp: Boolean,
	dateProp: Date,
	numberProp: Number,
	objectProp: Object,
  stringProp: String
});

var model = mongoose.model('Types', schema);

module.exports = model;
var mongoose = require('mongoose');

var schema = new mongoose.Schema({
	arrayProp: Array,
	arrayTypedProp: [{
		type: Object
	}],
	mixedProp: {type: mongoose.Schema.Types.Mixed},
	booleanProp: Boolean,
	dateProp: Date,
	numberProp: Number,
	objectProp: Object,
  stringProp: String
});

var model = mongoose.model('Types', schema);

module.exports = model;

Test mixed type property