javascript - mongoose .save() hangs with 3 level of subdocuments when called from node.js -
I am currently working with Mongoose and Node.JS. I am using these schemas, this question): var gameSchema = new schema ({game id: {number:}}, round: [round. Schema]}); Var roundSchema = new schema ({roundId: {type: number}, rows: [Line.schema]}, {_id: false}); Var lineSchema = new schema ({lineId: {type: number} plays: [Play.schema]}, {_id: false}); Var playSchema = New schema ({Category: {type: string}, Score: {type: number}}, {_id: false}); For the first time, I get a goal together with one goal, and after that some characteristics are changed and the score is pushed with many plays. When I try game.save (function (err) {console.log ("save it"); if (! Mistake) {console.log ('ok') ;} And {console.log ('error:' + error);}}}); The server is just hanging and does nothing, none of the console messages print. Seeing the Mongoose Lodge, I could not find an error message or some logs helped me. The strange thing is that if I change the array wit...