#Schema won't populate DB with array of objects, instead just shows as an array. (Mongoose, MongoDB)
3 messages · Page 1 of 1 (latest)
Never mind, thankfully I solved it. I was trying to populate the DB with my json file using the schema I posted. I was having a problem with the product categories showing as an empty array when instead it was supposed to be an array of objects. Maybe define wasn't the right word.
Ah. Okay! Please don't delete your posts tho