Здравствуйте такой вопрос, я создал в mongoose модель, var Todo = mongoose.model('Todo', {
text: {
type: String,
required: true,
minlength: 1,
trim: true
},
difficult: {
type: String,
trim: true
},
completed: {
type: Boolean,
default: false
},
completedAt: {
type: Number,
default: null
}
});
Вот отсюда посмотрите пожалуйста
Георгий
Andrew
RJ
Alexander
Ilya
T.A
arts
Aleksey
Михаил Макарычев
Maks
Вячеслав
Владимир Воландемортович