These are chat archives for Automattic/mongoose

29th
May 2016
Gabriel Lima
@ewilazarus
May 29 2016 21:39
Hey guys, just out of curiosity: I have a Schema that has an array of nested objects within it (note: those nested objects are not refs, they are just object literals in the array which is nested in the main Schema) and I noticed that Mongoose creates _ids for them. When I am trying to use the findOne method from the model created out of this Schema, the results is an array with just those automatically created _ids. Does it mean I have to populate them?
Gabriel Lima
@ewilazarus
May 29 2016 22:11
Actually, it turns out that if I force required: true it makes the fields appear when I query the model. Can someone explain why?