mirror of
https://github.com/vale981/grapher
synced 2025-03-04 17:11:38 -05:00
Fixes #305 - removed link from many metadata now cleared
This commit is contained in:
parent
9ca5e63deb
commit
019c50a515
1 changed files with 8 additions and 4 deletions
|
@ -103,17 +103,21 @@ export default class LinkManyMeta extends Link {
|
|||
let modifier = {
|
||||
$pull: {
|
||||
[field]: {
|
||||
$elemMatch: {
|
||||
_id: {
|
||||
$in: _ids
|
||||
}
|
||||
_id: {
|
||||
$in: _ids
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
console.log(this.linker.mainCollection.findOne(this.object._id));
|
||||
console.log(JSON.stringify(modifier));
|
||||
|
||||
this.linker.mainCollection.update(this.object._id, modifier);
|
||||
|
||||
|
||||
console.log(this.linker.mainCollection.findOne(this.object._id));
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue