Update ingestors

Create owned property on created nodes
master 2.0.3.1
Rohan Vazarkar 2018-08-24 09:25:10 -05:00
parent f9b7761f86
commit 543e169165
5 changed files with 5 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -252,6 +252,10 @@ export default class GraphContainer extends Component {
let typevar = `type_${type.toLowerCase()}`;
let statement = `MERGE (n:${type} {${key}:{name}})`
if (key === "Computer" || key === "User"){
statement = `${statement} SET n.owned=false`
}
q.run(statement, {name:varn}).then(x => {
let instance = this.state.sigmaInstance;
let id = generateUniqueId(instance, true);