I have model with multiple fields. The model in the Python App Engine app looks like this:
class Team(ndb.Model):
field_a = ndb.StringProperty()
field_b = ndb.StringProperty()
field_c = ndb.IntegerProperty()
When running this code from the Node.js part of the app:
var key = ds.key(['Team', team_id]);
ds.update({
key: key,
data: [{name: "field_c", value: new_count, excludeFromIndexes: true}]
}, function(err) {
if (!err) {
// Record saved successfully.
}
});
I get fields field_a and field_b deleted from the model. How can I update only one field of the object without deleting the other fields?
Thanks
I have model with multiple fields. The model in the Python App Engine app looks like this:
When running this code from the Node.js part of the app:
I get fields
field_aandfield_bdeleted from the model. How can I update only one field of the object without deleting the other fields?Thanks