How to auto populate fields with MongoDB and Mongoose
In case you have used MongoDB and mongoose together, maybe you did find yourself in a situation similar to this: In this case, we have a Schema with a property called “platforms” which is basically an array of objects. The key point to be noticed here is that every “platform” is a model already defined in our project and what we are doing here is trying to maintain a relationship between an account and the platforms it’s valid for. If you are coming from…