mongoose-seed
mongoose-seed copied to clipboard
Added a Property in All Documents of the DB Collection Even If It Isn't Always Present!
Hello, congratulations for your useful application that gives many the chance to prepare easily a MongoDB for testing and developing new software. Following your documentation, I have added the documents to seed my DB and the information about the schema and DB connection. The seeding seemed ok but I've noticed that even if in the Mongoose schema availableColors is not required, and it is not available in many documents, it has been added in all documents of the Toys collection! I tried to manually delete and seed again the same documents but the issue is still occurring. I've attached the seed.js (documents) and Toy.js (Mongoose schema). Thank you.