Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-03-2022 05:41 AM
I'm trying to run multiple databases at the same time and query data to and from them.
I successfully created these databases using the following query:
CREATE DATABASE databasename1;
CREATE DATABASE databasename2;
But I am now uncertain about how I should add data to each of these individual databases. For example, if I'd run something like:
CREATE (u:User {name: "John"});
in which database context will this be executed? How to change this context?
Thanks!
03-03-2022 07:20 AM
Is this in Neo4j Browser, or via a driver. If browser, you need to select the database that your commands will executed against.
try the following to switch between each:
:use databasename1
:use databasename2
03-03-2022 03:11 PM
I'm trying to achieve this in the nodejs driver.
03-03-2022 03:18 PM
Then, I believe you can specify which database when getting a session. You can pass a map of configuration key/value pairs to the session method.
03-03-2022 03:29 PM
All the sessions of the conference are now available online