cypher - How to list out all the nodes which are having common properties in neo4j -


मुझे 4, नोड्स, ए, बी, सी, डी वाले गुण निम्नलिखित हैं,

   

अब मैं सभी नोड्स को प्रदर्शित करना चाहता हूं जो समान गुण हैं या कार्य_इन / पदनाम

आप ऐसा कुछ करने की कोशिश कर सकते हैं:

  MATCH (a: YourLabel) मैच (बी: आपका लेबल) जहां एक & lt; & gt; B और (b.works_in = a.work_in OR b.designation = a.designation) रिटर्न, कलेक्ट (बी) जैसा कि समान   

यह आपके सभी नोड्स से मिलान करेगा और तब प्रत्येक का उपयोग करेगा एक नई क्वेरी के लिए स्रोत के रूप में नोड एक & lt; & gt; बी स्वतः से नोड्स को बंद कर देगा।

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -