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.

How to pass database name both way statically and dynamically

Hello Community,

I have a basic Node JS app where below code hits only neo4J default database out of the box,

I have 2 use case:

  1. How can I pass the database other than one default database neo4j?

  2. I have multiple databases with same schema and relationship and ONLY data is different. Now say I am building an graphql endpoint for query and mutation. Question is, during runtime (while calling the API) how to can send the database name (db1, db2, ect)? I have a plan to deploy the graphql endpoint along with Apollo server over Azure function. Thoughts/idea/solution please?

    const driver = neo4j.driver(
    "bolt://localhost:7687",
    neo4j.auth.basic("neo4j", "letmein")
    );

0 REPLIES 0