So you want to check to see if there’s any node, anywhere in the entire graph, where Foo == "Bar"? (This will be terrible if you have more than 1000 or so nodes in your graph. You should use an index.)
Or you want to check if node 67 exists?
-- Tatham
--
You received this message because you are subscribed to the Google Groups "Neo4jClient" group.
To unsubscribe from this group, send email to neo4jclient...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I guess I want the first query. I was hoping that the query would be limited since I only want to query all of the nodes of a specific type that have in your words the property ‘Foo == Bar’. Say I have the following class:
Public class MyNode
{
Public string Foo { get; set }
}
I run into this situation since our relational database can have many duplicates and before I create a whole new node I want to know if there are any nodes with that same value and instead of creating it I want to ‘get’ it. Am I thinking about this wrong?
There is very little info on Cypher queries with neo4jclient.
I am planning on about 100000 nodes after the population from SQL server happens but at first there will be only a few. Then as the population continues there will be more and more. If an index is a better way how do I create an index with neo4jclient?
I am relatively new to neo4j so I don’t know the benefit of an ‘upsert operation’ or what ‘CREATE UNIQUE’ will do. They both seem Cypher related and again using Cypher with neo4jclient doesn’t have a lot of documentation on it that I could find.
Thank you.
This brings up two questions in my mind.
1. How do I run a Cypher query with neo4jclient (starting with a GraphClient)?
2. What is the best way to create a node with neo4jclient that has the same properties as the properties on the .NET model class?
Is this possible with neo4jclient?
From: neo4j...@googlegroups.com [mailto:neo4j...@googlegroups.com] On Behalf Of Tatham Oddie
Sent: Thursday, November 08, 2012 1:45 PM
To: <neo4j...@googlegroups.com>
Cc: neo4j...@googlegroups.com
Subject: Re: Test for existence?
The type information only exists in .NET to help us serialize and deserialize into known models, and to provide IntelliSense through the query syntax where possible. This information is not in Neo4j. To Neo4j, you just have property bags.