Created
November 3, 2019 14:10
-
-
Save AmitDJagtap/6c8042a57227fbc20607e621fba9def1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> db.findOne(id : xyz, Person).then((data) => { | |
// data = Hydrate(data); | |
data.name = 'new name'; | |
data.title = 'Mrs'; | |
db.save(data, Person).then((result) => { | |
resolve(result); | |
}); | |
}); | |
>> db.updateFields(Person, { query: { id: data.id }, fields: { $set: { name: 'new Name', title: 'Mrs' } } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment