I am attempting to generate my first hello world (using vb.net ) but am running into the following error
Dim driver As IDriver = GraphDatabase.Driver("bolt://localhost:7687", AuthTokens.Basic("neo4j", "password"))
Dim session As IAsyncSession = driver.AsyncSession(Function(o) o.WithDatabase("neo4j"))
Dim cursor As IResultCursor = Await session.RunAsync("CREATE (n) RETURN n")
Error: Neo4j.Driver.ClientException: Driver is connected to a server that does not support multiple databases. Please upgrade to neo4j 4.0.0 or later in order to use this functionality at Neo4j.Driver.Internal.Protocol.BoltProtocolV3.d__4.M
ps: Extremely new to this....
4.0 driver is compatible with
3.5 versions of the database - the only thing you had wrong was using the
This example C# works:
var driver = Neo4j.Driver.GraphDatabase.Driver("bolt://localhost:7687", AuthTokens.Basic("neo4j", "neo"), config => config.WithEncryptionLevel(EncryptionLevel.None)); var session = driver.AsyncSession(); var results = await session.RunAsync("MATCH (m:Movie) RETURN m"); await results.ForEachAsync(r => Console.WriteLine(r["m"].As<INode>().Properties["title"]));
The only real difference is that you should call:
Dim session As IAsyncSession = driver.AsyncSession()
instead of passing in the
Function to define the database.
Sorry for the delay - and I hope that helps