Posts by Wayter Paulo • 1 point
1 post
-
-1
votes1
answer164
viewsA: Mongodb - How to insert an Objectid via variable?
Model Alunos = { nome:String, data_nasc:Date} Model Professores = { nome: String, curso: String, alunos[{ id:{ type: Schema.Type.ObjectId ref:'Alunos' } }] you can pass an array of objects then on…
mongodbanswered Wayter Paulo 1