Neo4jGraphQL Constructor - setting database

Howdy,

I am trying to use the Neo4j GraphQL + Apollo to query data from my database to my web app (Next.js).

The connection works, but the query always returns empty results. This appears to be because the request is to the "neo4j" database and not the "rightDB" database.

How do I configure the driver or Neo4jGraphQL constructor to always query against the "rightDB" database?

The Neo4j docs are NOT helpful at all in this journey.

Hi @jacob3 ,

I´m not using GraphQL , but in python you can set the right Graph Database :

from graphdatascience import GraphDataScience

gds = GraphDataScience(host, auth=(user, password))
gds.set_database("RightGDB")

Greetings

Hi @jacob3,

To specify which database to use, you can change the configuration of the driver.

This is in the documentation under Driver configuration.