I am trying to create a mongoose schema that is an array of Maps that are String -> String:
var daySchema = new mongoose.Schema({
schedule: {
type: [Map],
of: String
}
});
This is what I have, but it's giving me a validation error.