Fastify Mongoose Connection
this package add a db property in fastify object a fastify decorator workks.
How to install
npm i fastify-mongoose-connection
How to access connection
const fastify = fastify
this will add a db property to fastify
fastifydbusers;
Configuration properties
user: 'root' //database user password: 'example' // database password name: 'test' //database name hosts: host: 'localhost' // host for a database server port: 27017 // port of databaser server options: {} // same as mentioned in mongoose documentation
License
MIT