Questions tagged [neo4jclient]

Neo4jClient is an open source .NET client for the Neo4j graph database.

Neo4jClient is an open source .NET client for the Neo4j graph database.

It is primarily focused on Cypher queries, and is in active development. There is support for the CRUD REST API and Gremlin queries, however these approaches are both considered legacy and are not being developed.

It has an official site with documentation, and is available via NuGet.

627 questions
10
votes
1 answer

How to Create a Node with Neo4jClient in Neo4j v2?

Under Neo4j v1.9.x, I used the following sort of code. private Category CreateNodeCategory(Category cat) { var node = client.Create(cat, new IRelationshipAllowingParticipantNode[0], new[] { …
Cheval
  • 403
  • 4
  • 14
9
votes
1 answer

Could not load file or assembly "Newtonsoft.Json.Net" (Exception from HRESULT: 0x80131040)

When we installed a previous version the Neo4jClient via nuget we saw that Newtonsoft.Json version 4.5.0.0 was installed as a dependency. We also use other packages that require version 6.0.0.0 of Newtonsoft.Json and when we install them it…
Mike Barnes
  • 4,217
  • 18
  • 40
  • 64
7
votes
3 answers

Neo4jClient - How to check if property exists

I'm having trouble converting the following Cypher query to the Neo4jClient syntax. MATCH n WHERE NOT (HAS (n.User)) OR n.User = "username" RETURN n This is what I currently have with the addition of some relationship logic and the omission of the…
Jeff H
  • 125
  • 1
  • 1
  • 5
7
votes
3 answers

Storing object as property in Neo4j

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…
Wayne Cordrey
  • 75
  • 1
  • 3
6
votes
1 answer

Neo4j over bolt protocol has very high latency

I'm using Neo4j for a project using the official Neo4j driver for .NET found here: https://www.nuget.org/packages/Neo4j.Driver This driver works over the bolt protocol, my assumption being that a specialized binary protocol would be more efficient…
JulianR
  • 16,213
  • 5
  • 55
  • 85
6
votes
3 answers

Parameterless constructor error with autofac in web api 2

I am using Autofac as IOC and here is my structure: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AdTudent.Repo { public interface IRepository { …
6
votes
2 answers

Batch insert nodes and relations neo4jclient

I have many nodes and edges in a list. Currently I'm looping through the list and inserting each node with a query which is very slow. How do I perform a batch insert using neo4jclient? Node object: public class myNode { public int id { get;…
Nitin Labhishetty
  • 1,290
  • 2
  • 21
  • 41
6
votes
2 answers

F# - cypher query with multiple return values

Given this query (from here) let pAfollowers = client.Cypher .Match("n<-[:follows]-e") .Where(fun n -> n.Twitter = "tA") .Return("e") .Results .Select(fun x -> x.Name) I…
NoIdeaHowToFixThis
  • 4,484
  • 2
  • 34
  • 69
5
votes
2 answers

Neo4J create temp variable within Cypher

So my Top-Level problem is I am trying to return whether a MERGE resulted in the creation of a new Node or not. In order to do this I was thinking I could just create a simple temp boolean setting it to TRUE using ON CREATE How I imagine it…
ErocCatlun
  • 83
  • 1
  • 7
5
votes
1 answer

Can Neo4j store a dictionary in a node?

I an working on c# and use neo4jclient. I know neo4jclient can create a node if I pass a class object to it (I have tried it) Now in my class I want to add a dictionary property, this doesn't work. My code: GraphClient client = getConnection(); …
user2234995
  • 285
  • 3
  • 10
5
votes
1 answer

Return All Nodes in Shortest Path as Object List

I have the following Cypher Query which works fine in the Neo4j 2.0.0. MATCH (ab:Point { Latitude: 24.96325, Longitude: 67.11343 }),(cd:Point { Latitude: 24.95873, Longitude: 67.10335 }), p = shortestPath((ab)-[*..150]-(cd)) RETURN p The following…
Saad Farooq
  • 977
  • 2
  • 13
  • 26
5
votes
1 answer

Creating Relationships Between Nodes in Neo4j with Neo4jClient in C#

I'm working with Neo4j using the .Net Neo4jClient (http://hg.readify.net/neo4jclient/wiki/Home). In my code, nodes are airports and relationships are flights. If I want to create nodes and relationships at the same time, I can do it with the…
Brent Barbata
  • 3,631
  • 3
  • 24
  • 23
4
votes
3 answers

Neo4jClient Create and Update a Relationship

I have a Neo4j Graphdatabase with access via the Neo4jClient. (It is a .NET client for the REST api of Neo4j) There is the beginning of a documentation. What I have done The connection to the database works. Client = new GraphClient(new…
danijar
  • 32,406
  • 45
  • 166
  • 297
4
votes
2 answers

Neo4j Client UNWIND with "DateTime?"

I'm currently trying to unwind a list of TravelEdges that has a "DateTime?" but I keep receiving the following error: {"CypherTypeException: Type mismatch: expected a map but was String(\"2018-05-21T08:38:00\")"} I'm currently using the latest…
Liam
  • 439
  • 1
  • 4
  • 26
4
votes
2 answers

Cannot serialize member because it is an interface

Follow on question from Error with explicit conversion when using CollectAs<> Code from WebMethod return client.Cypher .Match("(person:Person)") .Where((Person person) => person.Email == username) …
1
2 3
41 42