Choose database name with javascipt

I am working on a simple React application with Neo4j. I created two databases (localhost) in one project and would like to query one database after another using the result from the first one. However, I am not able to find a way to specify the database name. I have tried this [Driver Configuration but it doesn't work, I am getting 37 errors when I start my react app. (Driver Configuration - Neo4j GraphQL Library)

I am able to query the default database but not the chosen one. Any tips on how I could best approach this problem very welcome!

Can you access the other database from your neo4j-browser?

And if you say two databases do you mean two servers or two-multi-db ones?

You can select the database per session, I think in graphql you'll have to configure the db name for the graphql library, so you will need two apollo clients afaik.

see

. This is my neo4j project. I would like to query the default and then hubmap databases. I am aware that this will have to be done via two drivers but I am struggling to find something that will allow me to set up the database name in the driver. When I tried this driver config it was the Appollo server that caused me issues, it seems to be outdated, throwing a lot of warnings while npm install.

Did you check the graphql docs for that?

You need to create two apollo clients as far as I know.

Thank you for your help. I decided to use the Neo4j Aura DB as the second DB, I am connecting to it without any problems. This is enough for my project