asilvestre / haskell-neo4j-rest-client

Haskell neo4j REST client
MIT License
25 stars 7 forks source link

Function for CREATE UNIQUE #21

Closed tkvogt closed 9 years ago

tkvogt commented 9 years ago

Do you think there should be function to avoid duplicated nodes? Or can this already be done somehow?

asilvestre commented 9 years ago

Hi,

This feature is not available in the CRUD section of the API (i.e. createNode and so on). This is so because these operations map directly to operations offered by Neo4j's REST API and as far as I know they don't offer CREATE UNIQUE for nodes (otherwise please let me know).

However, CREATE UNIQUE is available in Neo4j's Cypher query language, with this driver you can send cypher queries using these calls

tkvogt commented 9 years ago

OK. Lets hope that this is reasonably fast. I am currently trying to store the gitgub event stream into Neo4j. 46 GB from January to September this year.