mirror of https://gitee.com/bigwinds/arangodb
fix lost id
This commit is contained in:
parent
d7c4bb0cc8
commit
7a80c3c5ee
|
@ -190,6 +190,8 @@ Edge.prototype.getPropertyKeys = function () {
|
|||
|
||||
Edge.prototype.setProperty = function (name, value) {
|
||||
var shallow = shallowCopy(this._properties);
|
||||
shallow['$id'] = this._properties.$id;
|
||||
shallow['$label'] = this._properties.$label;
|
||||
shallow[name] = value;
|
||||
|
||||
// TODO use "update" if this becomes available
|
||||
|
@ -629,6 +631,7 @@ Vertex.prototype.properties = function () {
|
|||
|
||||
Vertex.prototype.setProperty = function (name, value) {
|
||||
var shallow = shallowCopy(this._properties);
|
||||
shallow['$id'] = this._properties.$id;
|
||||
shallow[name] = value;
|
||||
|
||||
// TODO use "update" if this becomes available
|
||||
|
|
Loading…
Reference in New Issue