Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-13-2022 07:27 AM
Hello All,
How to connect to neo4j desktop db in an JavaScript express app? what is the uri
of the desktop db in the below snippet? Also after initializing the session in a express js module how to use it in another module?
const driver = neo4j.driver(uri, neo4j.auth.basic(user, password))
const session = driver.session()
Thanks,
Arun
01-13-2022 07:40 AM
If you're using Neo4j Desktop, you're likely talking about a local database.
In this case, the URI can be either: bolt://localhost
or neo4j://localhost
(default port is 7687), both will work.
01-13-2022 07:45 AM
yes, I'm using a local database.Which url should I use to connect from the JavaScript driver?
01-13-2022 07:47 AM
See message just above 🙂
01-13-2022 07:49 AM
Can I use both the url formats?
01-13-2022 07:59 AM
How to create only a single instance of connection to reuse the connection instance across modules?
01-14-2022 06:46 AM
@florent.biville1 In the neo4j desktop app's window top bar it the string shows up as
neo4j@bolt://localhost:7687/neo4j
. How do I specify the username and password?
01-14-2022 07:49 AM
I'd like to connect to the expressAuth
database under the Chat
project.
All the sessions of the conference are now available online