Mongodb logic seems to fail after Meteor upgrade?
var p1 = FutureTasks.findOne({userid: details.userid}).count;
seems to give different output and hence not counting as expected? But count is just one my collection attributes and not method:
Schemas.FutureTask = new SimpleSchema({
userid: {
type: String,
label: "USER_ID",
max: 20,
optional: true
},
start_date: {
type: String,
label: "START_DATE",
max: 19,
optional: true
},
end_date: {
type: String,
label: "END_DATE",
max: 19,
optional: true
},
count: {
type: Number,
label: "COUNT",
optional:true
}
});