Basic Fastify plugin for
LokiJS.
Adapted with minimal generalizations from
Tomas Della Vedova’s demodb.
const FastifyLokiJS = require('fastify-lokijs')
fastify.register(FastifyLokiJS, options)
Where options is passed as-is to the Loki constructor.
Makes fastify.loki.db and fastify.loki.collection() available.
The fastify.loki.collection() helper gets a reference to a collection, creating it if needed.
See defaults.js for the default options in place.
MIT
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.