faboulaws/fakingoose

property value() options does not work for nested properties

Closed this issue · 1 comments

Example:

const schema = new mongoose.Schema({user: {address: {street: String, postalCode: String}}});
const options = {
   "user.address.postalCode": {
      value: () =>  '....'
 }
};

In the example above the value is not generated as defined by the value() function.

Cannot reproduce.