objection
Version:
An SQL-friendly ORM for Node.js
21 lines (17 loc) • 457 B
JavaScript
;
const { GraphOperation } = require('../GraphOperation');
const { GraphPatchAction } = require('./GraphPatchAction');
class GraphPatch extends GraphOperation {
createActions() {
return [
new GraphPatchAction(this.graphData, {
nodes: this.graph.nodes.filter((node) =>
this.graphOptions.shouldPatchOrUpdateIgnoreDisable(node, this.graphData),
),
}),
];
}
}
module.exports = {
GraphPatch,
};