Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fastify Mongo Memory Plugin

Test Semantic Release JavaScript Style Guide semantic-release

NPM

Installation

npm install fastify-mongo-memory --save

Usage

fastify.register(require('fastify-mongo-memory'), options, err => console.error(err));

fastify.get('/', (request, reply) => {
    console.log(fastify.mongo); // Mongo in memory DB
});

Options

Mongo in memory DB configuration JSON object.

{
  "port": 5000 /* 8000 by default */
  "dbname": "database-test-name"
}

Author

Nicolás Balduzzi

License

Licensed under MIT.

About

Fastify Mongo in memory Plugin

Resources

License

Packages

No packages published