I\'m trying to develop a class on the top of the mongoose with my custom methods, so I extended the mongoose with my own class but when I invoke to create a new car method i
Just add the second parameter as an object to the connect() method.
mongoose.connect('dbUrl', { useMongoClient: true });
See: http://mongoosejs.com/docs/connections.html#use-mongo-client