Skip to content

Working with Aura DB #445

@mcalvin-kinectify

Description

@mcalvin-kinectify

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:

 services.AddSingleton(context =>
  {
      var path = config.GetValue<string>("Neo4j:Path");
      if (!path.StartsWith("http") && !path.StartsWith("neo4j")) // note with aura db this condition would not be met (starts with neo4j+s)
      {
          path = $"http://{path}:7474"; // add the neo4j protocol and port if it isn't provided
      }

      return NeoServerConfiguration.GetConfigurationAsync(
          new Uri(path),
          config.GetValue<string>("Neo4j:User"),
          config.GetValue<string>("Neo4j:Password")
      ).GetAwaiter().GetResult();
  });

  services.AddSingleton<IGraphClientFactory, GraphClientFactory>();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions