Browse Source

expose bson types visible in the shell using the shell names. fixes #99

f
saintedlama/travis-non-legacy
Mathias Buus 11 years ago
parent
commit
06bbf02b67
  1. 8
      index.js

8
index.js

@ -349,7 +349,15 @@ var connect = function(config, collections) {
}; };
connect.connect = connect; // backwards compat connect.connect = connect; // backwards compat
// expose bson stuff visible in the shell
connect.ObjectId = mongodb.ObjectID; connect.ObjectId = mongodb.ObjectID;
connect.DBRef = mongodb.DBRef;
connect.Timestamp = mongodb.Timestamp;
connect.MinKey = mongodb.MinKey;
connect.MaxKey = mongodb.MaxKey;
connect.NumberLong = mongodb.Long;
connect.Cursor = Cursor; connect.Cursor = Cursor;
connect.Collection = Collection; connect.Collection = Collection;
connect.Database = Database; connect.Database = Database;

Loading…
Cancel
Save