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
3
votes
1 answer

Neo4jClient "CASE WHEN" together with return

I'm trying to figure out how to do something like this (simplified): RETURN CASE WHEN groups IS NOT NULL THEN collect(groups) ELSE NULL END with Neo4jClient in C#. I've tried this: .Return((groups) => new { Board = parentBoard.As(), …
bakk
  • 81
  • 4
3
votes
2 answers

Neo4j: Merge duplicating one of three nodes in a query

As I stated on a different post, I am moving from SQL Server to Neo4j, so I'm fighting the learning curve. I've been doing fairly well at searching StackOverflow and google to answer my questions, but I have stumbled across a weird result of a query…
3
votes
1 answer

faster way to create relationship between existing nodes?

I am working on an application in which I have only "11263" number of nodes in my neo4j database. I am using following cypher query to form the relationships between the nodes: let CreateRelations(fromToList : FromToCount list)= client.Cypher …
Pankaj Chouthmal
  • 195
  • 1
  • 11
3
votes
1 answer

How to remove relations while iteration with UNWIND using cypher

The following query getting all groups of specific user then unwind on each result(each group) and should remove all incoming relations only if count relations to that group is 1. example: group1<-user1 (will delete the incoming relationship to…
rayman
  • 20,786
  • 45
  • 148
  • 246
3
votes
2 answers

Neo4J - Copy all relationships from one to another node (C# Wrapper)

i'm currently struggling with an issue an i've not found any workaround at the moment. (I'm using NEO4J C# library) I need to merge two nodes together into a third and copy all the relationships (Type & Properties) from those two nodes to my newly…
Ashallar
  • 990
  • 8
  • 15
3
votes
1 answer

Neo4j Merge and Atomic Transaction

I am running the below MERGE query against my Neo4j server from a client application in 10 parallel threads, the newFoo and id parameters are the same on all 10 runs: MERGE (foo:Foo { id: {id} }) ON MATCH SET foo = {newFoo} After running this, I…
tugberk
  • 57,477
  • 67
  • 243
  • 335
3
votes
1 answer

Cannot deserialize datetime property Neo4j using C# client

I'm trying to get strongly typed objects back out of Neo4j using the C# client. This all works until I add a DateTime property. I've successfully inserted data into the Neo4j database and I can see it using the console. I can also query the data,…
Ropstah
  • 17,538
  • 24
  • 120
  • 194
3
votes
2 answers

insert node in neo4j is very slow

I'm trying to insert a single node in my graph without any relationships and it takes 1/10 sec, so when I need to insert 10 nodes that should take 1 sec which is a lot comparing with some results I found in my google search for some people who claim…
Rawhi
  • 6,155
  • 8
  • 36
  • 57
3
votes
1 answer

How to create an embedded Neo4j database in c#

How do I create an embedded Neo4j database in c#? I want to perform queries on this embedded database for testing and then discard it. Currently i'm using neo4jclient for performing queries on the database running on my system(localhost) but want to…
Nitin Labhishetty
  • 1,290
  • 2
  • 21
  • 41
3
votes
1 answer

How do I return Relationship and its properties through neo4jclient with cypher

Please find below the Cypher Query (which is normal) MATCH (a:`Entity`) - [r] - (b:`Entity`) RETURN a , r , b First Question : How do I translate this to neo4jClient in my c# Code. Second Question : The Relation has multiple properties. How do I…
cheenu
  • 55
  • 9
3
votes
1 answer

Combining return values into a single type

I have a Neo4j relationship that looks like this: (a:Article)<-[:TRANSLATES]-(t:ArticleTranslation) The Article label is applied to nodes which simply hold a unique identifier and the ArticleTranslation label is applied to nodes which…
Ant P
  • 24,820
  • 5
  • 68
  • 105
3
votes
1 answer

Attempting to build a Neo4j Repository

Before anyone asks, I do know that there is already a Neo4jClient repository, but it is dated and hasn't been updated for Neo4j 2.x and the new Neo4jClient code. My goal is to achieve something like this: var profiles =…
Cameron Tinker
  • 9,634
  • 10
  • 46
  • 85
3
votes
1 answer

Neo4jClient - Returning labels belonging to node

In using the Neo4j client for .NET I have not been able to find a way to capture labels belonging to a specific node. I can observe that this data is available by capturing network traffic, but I cannot find any way to retrieve this data using the…
Tim Ferrell
  • 1,348
  • 3
  • 17
  • 40
3
votes
1 answer

Defining Schema for Neo4J Using Neo4JClient in C#

How to correctly/standardly define schema for neo4j database in my C# application? In my application, I have nodes with properties and relations with properties. I want to define templates/Classes of these nodes and relations that can then be…
Saad Farooq
  • 977
  • 2
  • 13
  • 26
3
votes
1 answer

Recursively Adding tree structure to a List C#

So I have some code that performs a Neo4j cypher query that returns an IEnumerable of type FolderObject like so: public IEnumerable GetChild(string parentId) { IEnumerable childNode = null; var query =…
Mike Barnes
  • 4,217
  • 18
  • 40
  • 64
1 2
3
41 42