Not Able to update dynamic fields

10 views
Skip to first unread message

Deepesh naini

unread,
Oct 4, 2015, 11:19:08 PM10/4/15
to LoopbackJS

I have a model with the following structure
{
firstName: "deepesh",
lastName: "naini",
email: "theinvin...@gmail.com"
question: {
5611662e337ae3605046f0d5: false,
5611662e337ae3605046f0d7: false
},
}

Now what I want is based on a condition I want to update the boolean values to 
{
firstName: "deepesh",
lastName: "naini",
email: "theinvin...@gmail.com"
question: {
5611662e337ae3605046f0d5: true,
5611662e337ae3605046f0d7: true
},
}

But when I am calling the save function on my model after changing the boolean values to true it's not getting updated in DB.

Reply all
Reply to author
Forward
0 new messages