seanemmer / mongoose-seed

Seed data population for Mongoose
MIT License
52 stars 33 forks source link

Added a Property in All Documents of the DB Collection Even If It Isn't Always Present! #37

Open cypherinfo opened 5 years ago

cypherinfo commented 5 years ago

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.

myapp.zip