Here is screenshot of document: Imgur: The magic of the Internet
In this document there is array of objects, each object include 3 variables: name
,zone
,deviceType
. (You can see mongoose model in the link also)
But somehow, every object get an _id, well, I don’t need it.
I’m getting the array ready from the Front-end, and it’s taking the object ready with variables, and I just do Model.devices = DevicesArraya