Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-22-2021 08:40 AM
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()
All the sessions of the conference are now available online