FAQ Database Discussion Community


How do I write this in Neo4jClient

c#,neo4j,neo4jclient
Thanks to Dave Bennett, I have a great Neo4j query that provides the results I need. I need to get this to work in Neo4JClient. Here's my working Neo4j query: `// Composite Tile with related users match (t:Tile{summary:"Test 1"})<-[:ASSIGNED_TO]-(u:User) with {summary: t.summary, id: t.id, sprint_id: t.sprint_id, size: t.size, percent_done: t.percent_done,...

In Neo4J, how to retrieve nodes, along with additional information about if they are connected or not to a specific node

neo4j,neo4jclient
I have nodes with Product Information (P). Every time a user likes the product, relationship [L] is created connecting user (U)->[L]->[P] Now I need to retrieve a set of Product nodes based on specific condition, but also need to return additional information that whether they are liked by a specific...

How to create database and start that database in neo4j from c# backend?

neo4j,neo4jclient
I am really hopeless how to create database and start that database from c# backend just like neo4j Community. I know how to Assign Neo4j URI neoClient = new GraphClient(new Uri("http://localhost:7474/db/data")); And I know how to connect with Neo4j GraphDB neoClient.Connect(); after starting my database using Neo4j Community. But actually...

Constructing a method call

powershell,neo4jclient
in trying to follow this guide: https://github.com/Readify/Neo4jClient/wiki/cypher-examples#get-all-users-by-label I need to create a lambda expression in order to provide it to the Return method. In C# it looks like this: .Return(n => n.As<Project>()) and in Powershell I've gone about it this way (as per @PetSerAl's suggestion: Return overload fails): $exp =...

How to read method signature?

.net,powershell,neo4j,neo4jclient
if I review the overloads available for the Return method, which I can do like this: [System.Reflection.Assembly]::LoadFrom("C:\...\Newtonsoft.Json.6.0.3\lib\net40\NewtonSoft.Json.dll") [System.Reflection.Assembly]::LoadFrom("C:\...\Neo4jClient.1.0.0.662\lib\net40\Neo4jClient.dll") $neo = new-object Neo4jClient.GraphClient(new-object Uri("http://localhost:7474/db/data")) $q=$neo.Cypher.Match("n").Return({param($m) $m}); $neo.Cypher.Match("n").Return.OverloadDefinitions I see something like this:...

How to return the whole node with all its properties from Neo4J .NET client?

c#,neo4j,neo4jclient
I'm trying to make a generic code that can filter on object connected to an user. These objects can be of different types, with different properties etc. Basically I want to implement this method: public string GetRelatedObjects(string sourceObject, string userId){ var resQuery = GraphDB.Cypher .Match("(src:" + sourceObject + ")--(usr:User {...

Cannot implicitly convert type from System.Collection.Generic.IEnumerable.MyClass to MyClass

c#,generics,neo4j,neo4jclient
Following is the code for which the error is being generated: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Neo4jClient; using Neo4jClient.Cypher; namespace ConsoleApplication1 { public class SNode { public int shelfid { get; set; } public int floorid { get; set; } } public class PathsResult<TNode> { public...

Storing object as property in Neo4j

c#,neo4j,neo4jclient
I need to store an array of User objects inside a Tile node. Each User object contains three primitive properties; Id(a single alpha-character string) , fName and lName. This list of objects is a property of the Tile node with several other primitive properties. The entire Tile node needs to...

Deserialize Json from Neo4J 2.2.2

c#,vb.net,cypher,neo4jclient
I´m using the Neo4J version 2.2.2. When the Neo4jClient try to deserialize the following json (Mode Projection) we receive the following message: Neo4j returned a valid response, however Neo4jClient was unable to deserialize into the object structure you supplied. First, try and review the exception below to work out what...

Return overload fails

powershell,neo4j,neo4jclient
I'm following this little write up: https://github.com/Readify/Neo4jClient/wiki/cypher but I'm doing it from Powershell. so what I have so far is [System.Reflection.Assembly]::LoadFrom("C:\...\Newtonsoft.Json.6.0.3\lib\net40\NewtonSoft.Json.dll") [System.Reflection.Assembly]::LoadFrom("C:\...\Neo4jClient.1.0.0.662\lib\net40\Neo4jClient.dll") $neo = new-object Neo4jClient.GraphClient(new-object Uri("http://localhost:7474/db/data")) $q=$neo.Cypher.Match("n").Return({param($m) $m}); with which I would mean to retrieve all nodes in the...

Assigning a label to a created node in Neo4jClient

c#,graph,neo4j,neo4jclient
I want to create some nodes of type Person and Books using Neo4jClient. To do that, I have class Person like this: Public Class Person { Public String Name; } To create node, I have written something like this: Var RefA = client.Create(new Person(){Name ="John"}); (Client -> GraphicClient) When I...

Dynamically using params for relationship in Neo4jClient

c#,neo4j,neo4jclient
I am trying to use params to pass in relationship types dynamically with Neo4jclient but it didn't seem to work. Is this possible? Or what would be the equivalent? Basically I am trying to write a utility method to relate two nodes together by simply passing in two node Id...