1602 / jugglingdb

Multi-database ORM for nodejs: redis, mongodb, mysql, sqlite3, postgresql, arango, in-memory...
http://1602.github.io/jugglingdb/
2.05k stars 241 forks source link

Jugglingdb & mongodb driver: "id": null problem still exists!!! #415

Closed srisy closed 8 years ago

srisy commented 10 years ago

My schema definition is simple:

var User = db.define('User', { name: {type: String, index: true}, password: String, birthday: {type: Date, default: function () {return new Date();}}, email: String, addr: String, tel: String, age: Number, role: String });

when i insert the data, the object in the DB is: { "_id" : ObjectId("53df12d55df38b9808c3cf58"), "name" : "idTest", "password" : null, "birthday" : ISODate("2014-08-04T04:57:57.310Z"), "email" : null, "addr" : null, "tel" : null, "age" : null, "role" : null, "id" : null //////??????? }

why not fixed so long time?

jvskelton commented 10 years ago

This is not an issue with the jugglingdb core, its located in the mongodb-adapter. See

https://github.com/jugglingdb/mongodb-adapter/issues/28