Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contactModel.update({
- 'user_id': req.params.user_id,
- 'contacts.contact_id': req.params.id
- }, {
- $set: {
- 'contacts.$.name': req.body.contact.name,
- 'contacts.$.phone_number': req.body.contact.phone_number
- }
- })
Add Comment
Please, Sign In to add comment