simple-odata-server
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,0 +0,0 @@ /*! |
@@ -74,3 +74,3 @@ /*! | ||
}) | ||
this.router.get('/:collection/\$count/', function (req, res) { | ||
this.router.get('/:collection/\$count', function (req, res) { | ||
req.params.$count = true | ||
@@ -77,0 +77,0 @@ query(self.cfg, req, res) |
{ | ||
"name": "simple-odata-server", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "OData server with adapter for mongodb and nedb", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -64,3 +64,5 @@ | ||
MongoClient.connect(url, function(err, db) { | ||
odataServer.adapter(Adapter(function(cb) { cb(err, db); })); | ||
odataServer.adapter(Adapter(function(cb) { | ||
cb(err, db.db('myodatadb')); | ||
})); | ||
}); | ||
@@ -67,0 +69,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31550
119