# How to pass database name both way statically and dynamically

**URL:** <https://community.neo4j.com/t/how-to-pass-database-name-both-way-statically-and-dynamically/51963>\
**Category:** Cypher\
**Created:** [February 15, 2022, 5:37am UTC](https://community.neo4j.com/t/how-to-pass-database-name-both-way-statically-and-dynamically/51963 "2022-02-15T05:37:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MD\_AJMAL\_YAZDAN](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/md_ajmal_yazdan/32/22184_2.png) [@MD\_AJMAL\_YAZDAN](https://community.neo4j.com/u/MD_AJMAL_YAZDAN)\
**Post date:** [February 15, 2022, 5:37am UTC](https://community.neo4j.com/t/how-to-pass-database-name-both-way-statically-and-dynamically/51963/1 "2022-02-15T05:37:19Z")

</div>

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?
