-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with Aura DB #445
Comments
I was able to get a successful connection by doing this: services.AddScoped(context =>
{
var path = config.GetValue<string>("Neo4j:Path");
return GraphDatabase.Driver(path, AuthTokens.Basic(config.GetValue<string>("Neo4j:User"),
config.GetValue<string>("Neo4j:Password")));
});
services.AddScoped<IBoltGraphClient>(x =>
{
var driver = x.GetService<IDriver>();
return new BoltGraphClient(driver);
}); and then injecting |
I have run into the same issue working with Aura DB. @mcalvin-kinectify for my understanding/curiosity, the issue with a Scoped lifetime is that you have to call |
Hello,
We have been using this client on a local neo4j instance and have upgraded to Neo4j's hosted Aura database instead. Aura appears to only support the neo4j+s bolt protocol, and I am getting a messages that the protocol is not supported by Neo4jClient. Is that correct and the client won't work with Aura or am I doing something wrong? Here is how I am injecting the client into the dependency injection container:
The text was updated successfully, but these errors were encountered: