0.0.3 • Published 7 years ago

@boundstate/hapi-typeorm v0.0.3

Weekly downloads
12
License
-
Repository
-
Last release
7 years ago

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) => {

});