as it is known mongo modifies the name of the tables, if you specify the name table it will be converted into a plural - tables
I have a history essence and an amazing thing mongo transformed it according to the rules into histories
but for some reason refused to write data to it:
var data = { id: 1, name: "user1", value: 10 } var modelHistory = mongoose.model('Hystory', myShema), table = new modelHistory(data) table.save(function(err) { err && console.log(err); }); after renaming the model it all worked:
var modelHistory = mongoose.model('Hyst', myShema), Do I understand correctly that монго does not work correctly with исключениями in English?