cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

.net neo4j driver

Anonymous
Not applicable

Hi,

I'm not an expert and been trying lately to modify the .net helloword example query to this:

 

public void PrintGreeting(string message)
{
using (var session = _driver.Session())
{
var greeting = session.WriteTransaction(tx =>
{
var result = tx.Run("db.schema.nodeTypeProperties",
new { message });

return result;

});
Console.WriteLine(greeting);
}
}

 

But the returned result is "Neo4j.Driver.Internal.InternalResult" which obviously isnt what I want. What do i do?

1 REPLY 1

Probably best to take the graphacademy course on .Net when it comes out in a few weeks.
https://graphacademy.neo4j.com/categories/dotnet/

Otherwise did you check the .Net docs and API docs?

https://neo4j.com/docs/dotnet-manual/current/

https://neo4j.com/docs/api/dotnet-driver/current/html/f7d9eea1-5357-f1de-8a54-336a77141b6d.htm

here is also a small example project that demonstrates usage:

https://neo4j.com/developer/example-project/

https://github.com/neo4j-examples/movies-dotnetcore-bolt