mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'master' of github.com:triAGENS/AvocadoDB
This commit is contained in:
commit
6b69721672
|
@ -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