title: How to create MongoDB indexes in NodeJS app using Mongoose?
body: <p>According to <a href="http://mongoosejs.com/docs/guide.html#indexes" rel="nofollow">Mongoose documentation</a> , the index should not be defined on the schema and should be disabled in production. I am confused as to what is being recommended. If index should not be defined in the mongoose schema then how it should be created in NodeJS app?</p>