cyberdyne-ventures / skynet-data

Data Layer For the Skynet Project, Including Sample Data
Other
3 stars 0 forks source link

Text query results #6

Open randomuserid opened 4 months ago

randomuserid commented 4 months ago

One of the optional output formats in Neo is a text blob which looks like this: image

The URI looks like this from what I can see:

 "bolt_routing": "neo4j://18.215.233.59:7687",
    "transaction": "http://18.215.233.59:7474/db/{databaseName}/tx",
    "bolt_direct": "bolt://18.215.233.59:7687",
    "neo4j_version": "5.21.0",
    "neo4j_edition": "community"

We need to work out how to get this output format from Neo so we can show it in a Forensic view when a user wants to see complete details of alerts in a set for various reasons.

randomuserid commented 4 months ago

maybe like this;


   // Format the results as text
    result.records.forEach(record => {
      const node = record.get('n');
      const entityType = record.get('entity_type');
      console.log(`Node properties: ${JSON.stringify(node.properties)}, Entity type: ${entityType}`);
    });