lwc / moa

Moa - MongoDB object document mapper
4 stars 0 forks source link

Reference fields get stored in a way that breaks their use in array fields #5

Closed lwc closed 11 years ago

lwc commented 11 years ago

Eg, this sucks:

{
  myThings: {
    0: 123,
    0__type: 'SomeType'
  }
}

this is better:

{
  myThings: [
    { id: 123, type: 'SomeType' }
  ]
}
lwc commented 11 years ago

fixed in cf90fd8