cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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