@boundstate/hapi-typeorm
v0.0.3
Published
Responsive Swagger docs for Hapi
Downloads
16
Readme
hapi-typeorm
Typeorm for Hapi.
Usage
npm install @boundstate/hapi-typeorm
import * as Hapi from 'hapi';
import {hapiTypeorm} from '@boundstate/hapi-typeorm';
const server = new Hapi.Server();
server.register({
register: hapiTypeorm,
options: {
connectionOptions: {
// Options passed to typeorm
// see https://github.com/typeorm/typeorm#creating-a-connection-to-the-database
},
},
}).then((err) => {
});