You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constmateriels=awaitMateriel.insertMany(dataJson);materiels[0].setNext("idIncmateriels",function(err,user){if(err)console.log("Cannot increment the rank because ",err);});materiels[0].weeks[0].setNext("idIncPlan",function(err,user){if(err)console.log("Cannot increment the rank because ",err);});materiels[0].weeks[1].setNext("idIncPlan",function(err,user){if(err)console.log("Cannot increment the rank because ",err);}res.send(materiels);
The text was updated successfully, but these errors were encountered:
The problem exists with the field idIncPlan in the second document, it doesn't display properly like other fields
output :
Schema :
Controller :
The text was updated successfully, but these errors were encountered: