cancel
Showing results for 
Search instead for 
Did you mean: 

Configuration for multiple databases

quan_nguyen
Node Clone

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:

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.

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