Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ To create a connection to *mongodb://localhost:27017*, write the following code
// app/app.ts
...

import { MongoosePlugin } from 'bap-node-microframework-mongoose';

...

import { Kernel } from "./kernel";
var kernel = new Kernel();
var App = new Application(<ApplicationOptions>{
Expand All @@ -26,11 +30,7 @@ var App = new Application(<ApplicationOptions>{

...

let MongoosePluginInstance = new MongoosePlugin({ "dsn": "mongodb://localhost:27017" });

...

App.registerPlugin(MongoosePluginInstance);
App.registerPlugin(MongoosePlugin, { "dsn": "mongodb://localhost:27017" });

...

Expand Down