fastify-typeorm
Fastify plugin for TypeORM for sharing the same TypeORM connection in every part of your server.
Under the hood the official TypeORM module is used.
Install
npm install fastify-typeorm
Usage
Add it to your project with register
and you are done!
The plugin accepts the same connection options as the TypeORM client.
const fastify = ; const user = ; fastify; fastify; fastify;
You can also pass in an existing connection:
const createConnection = ; const fastify = ;const connection = await ;fastify;
Team
- Glenn Bostoen https://github.com/gboston https://twitter.com/gbostoen
- Jonas Goderis https://github.com/jonasgoderis https://twitter.com/JonasGoderis
License
Licensed under MIT.