neo4j - How to use "MATCH.. CREATE UNIQUE.." with neography -


I am trying to write an Importer script which will take for a MySQL result and in my Neo4J DB nodes and Will link the relationship. To make things easier, my results have the following fields:

  • application_id
  • amount
  • application_date
  • account_id

    I with the application_id , amount , application_date application I want to create a node field and the account_id field with the label account and another node with a relationship between them.

    My SQL query is from the application table, so I'm not afraid of dups there, but one account_ can appear more than once and I obviously do not want to create several nodes for it.

    I am using neogography (but if something simple). What would be the best (easiest) way to achieve this?

    Should I first create an index and use create_unique_node ? I think what I can do I want to use "match .. crate uniuk .. .." in cipher, which is equal to that in nigoshi? I do not understand how the index_name comes in the equation ... should not I define an obstacle on account?

    Many thanks, this is my first time if I miss a concept then with the graph DBs I am sorry ..

    What you describe, it seems like you should use the obstacles that come with Neo4j 2.0:

    Contract On (Account: Account) ASSERT Account. Account_id is unique

    Then you can use the match. Create a unique clue You can use Nanography to submit a cipher query for all your inclusion, see examples here:

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -