Updating multiple attributes within one put route Updating multiple attributes within one put route mongoose mongoose

Updating multiple attributes within one put route


You can update model by using

model.set(attributes, [options])  Ex :model.set({name: "yourName", desc: "In his eyes she eclipses..."});