Reputation: 1
I am on Neo4j Desktop and I have a project where I have 2 Databases under one Instance(DBMS).
So is there any property/configuration that tells SDN the right Database it has to query into?
In my Spring boot app, when I try to query the database with SDN, it queries the wrong Database and returns "Provided Label not present in Database" error.
I am following the same steps as mentioned in this article, but the example uses two different Neo4j DB hosts, wherein I have to use two different Neo4j Databases in same Host.
This is a POC project inside VDI machine where SOF is restricted, Hence unable to share implementation here - but hope the question is quite generic.
Upvotes: 0
Views: 488
Reputation: 1
I dont know if it is intended to work this way - but I tried the same app on Neo4j enterprise edition and I was able to connect with the right Database mentioned by spring.data.neo4j.database
property. But it is not working on Neo4j Desktop.
Upvotes: 0
Reputation: 67044
As documented, you can statically specify the database name using the spring config property spring.data.neo4j.database
, or you can dynamically specify the database name per transaction via a DatabaseSelectionProvider bean.
Upvotes: 3