cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass database name both way statically and dynamically

MD_AJMAL_YAZDAN
Node Link

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
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.