We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0553e6b commit 5fb4049Copy full SHA for 5fb4049
README.md
@@ -45,8 +45,8 @@ async function myFunction() {
45
46
const adapter = await MongoAdapter.newAdapter({
47
uri: 'mongodb://localhost:27017',
48
- collectionName: 'casbin',
49
- databaseName: 'node-casbin-official'
+ collection: 'casbin',
+ database: 'node-casbin-official'
50
});
51
52
const e = await newEnforcer(model, adapter);
@@ -77,8 +77,8 @@ import { MongoAdapter } from 'casbin-mongodb-adapter';
77
78
79
80
81
- databaseName: 'node-casbin-official',
+ database: 'node-casbin-official',
82
option: {
83
...mongoOptions
84
}
0 commit comments