Closed srisy closed 8 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?
This is not an issue with the jugglingdb core, its located in the mongodb-adapter. See
https://github.com/jugglingdb/mongodb-adapter/issues/28
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?