Questions tagged as 'mongoose'

1
answer

Insert a sub-document into a Mongoose sub-document

I currently have an object like this: { _id: 5ab5051ec97a4202984f2973, student_code: "1234567890", name: "myname", lastname: "mylastname", areas: [] } With mongoose I can insert a sub-document in areas like this: .post(fu...
asked by 23.03.2018 / 15:23
3
answers

MongoDB. Is there a way to relate collections?

I am working with a CRUD app with the MEAN stack to keep track of patients, I have a requirement to add a medical history to the patient with the particularity that when you delete a patient, only the patient is deleted, and your medical history...
asked by 25.08.2017 / 23:47
1
answer

Search by date model find mongoose not working

I am trying to find x objects by date, (the receipt of a form, I know it arrives in UTC format before the real one), I do the following. First I create the object console.log(datos) // Contiene los datos correctos , fecha ,datos ,etc Event...
asked by 19.10.2016 / 15:16