cancel
Showing results for 
Search instead for 
Did you mean: 

Neo4j driver node JS

Good morning everyone
i'am trying to connect my nde js programe to neo4j by writing this programe below but not working

const neo4j = require('neo4j-driver')
const driver = neo4j.driver("bolt://localhost:7687", neo4j.auth.basic("karim", "karim"))
const session = driver.session()

try {

const result =  session.run(

  'MATCH (n:Resource) RETURN n LIMIT 1'

)

console.log(result)



const singleRecord = result.records[0]

const node = singleRecord.get(0)



console.log(node)

} finally {

session.close()

}

// on application exit:

driver.close()

0 REPLIES 0
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.