# Configuration for multiple databases

**URL:** <https://community.neo4j.com/t/configuration-for-multiple-databases/38897>\
**Category:** Neo4j Graph Platform\
**Tags:** neo4j-driver, graphql\
**Created:** [May 26, 2021, 2:47pm UTC](https://community.neo4j.com/t/configuration-for-multiple-databases/38897 "2021-05-26T14:47:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quan.nguyen](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/quan.nguyen/32/7980_2.png) [@quan.nguyen](https://community.neo4j.com/u/quan.nguyen)\
**Post date:** [May 26, 2021, 2:47pm UTC](https://community.neo4j.com/t/configuration-for-multiple-databases/38897/1 "2021-05-26T14:47:54Z")

</div>

Hi,

I have a question about the configuration of Neo4jGraphql with multiple databases on 1 Neo4j database instance.  
I have a database instance with multiple databases on it and with this configuration, GraphQL only works on the default database (neo4j - by default). How can I configure the neo4j-graph database to make it works with other databases?

My current configuration:

```auto
const driver = neo4j.driver(
  'neo4j://localhost:7687',
  neo4j.auth.basic( 'neo4j', 'password')
);

```

I found this on documentation but have no idea about the `schema` variable.

```auto
const server = new ApolloServer({
  schema,
  context: { driver, driverConfig: { database: "sanmateo" } }
});

```
