Hi,
I have created a network using the following queries -
CREATE (cc:Organisation { name: "Century", dealing: "Cement", formed:1974 });
Match (cc:Organisation) WHERE cc.name = "Century"
CREATE (eway:EwayBill {name:"EwayBill", type:"Outbound", connectedTo:"SAP"}),
(sms:SMS {name:"SMS", type:"Outbound", connectedTo:"SAP"}),
(collection:Collection {name:"Collection", type:"Inbound", connectedTo:"SAP"}),
(payments:Payments {name:"Payments", type:"Outbound", connectedTo:"SAP"}),
(cc)-[:System]->(eway),(cc)-[:System]->(sms),(cc)-[:System]->(payments),(cc)-[:System ]->(collection);
MATCH (eway:EwayBill) WHERE eway.name="EwayBill"
CREATE (generate:Generate {name:"Generate", description:"Generate an Eway Bill"}),
(update:Update {name:"Update", description:"Update Vehicle Number"}),
(cancel:Cancel {name:"Cancel", description:"Cancel an Eway Bill"}),
(eway)-[:Method]->(generate),(eway)-[:Method]->(update),(eway)-[:Method]->(cancel);
MATCH (generate: Generate) WHERE generate.name="Generate"
CREATE (pan: Pan {name:"Pan", description:"Generate a PanCard"}),
(drivingl:DrivingLicense {name:"DrivingLicense", description:"Generate a Driving License"}),
(aadhaar:Aadhar {name:"Aadhar", description:"Generate an Aadhaar Number"}),
(generate)-[:Attribute]->(pan),(generate)-[:Attribute]->(drivingl),(generate)-[:Attribute]->(aadhaar);
MATCH (update: Update) WHERE update.name="Update"
CREATE (pan: Pan {name:"Pan", description:"Generate a PanCard"}),
(drivingl:DrivingLicense {name:"DrivingLicense", description:"Generate a Driving License"}),
(aadhaar:Aadhar {name:"Aadhar", description:"Generate an Aadhaar Number"}),
(update)-[:Attribute]->(pan),(update)-[:Attribute]->(drivingl),(update)-[:Attribute]->(aadhaar);
Here is the Network -
My query like this below reference to find any duplicate -
MATCH (js:Person)-[:KNOWS]-()-[:KNOWS]-(surfer)
WHERE js.name = "Johan" AND surfer.hobby = "surfing"
RETURN DISTINCT surfer
is
MATCH (js:EwayBill)-[:Attribute]-()-[:Attribute]-(findaadhar)
WHERE js.name = "EwayBill" AND findaadhar.name = "Aadhar"
RETURN DISTINCT findaadhar
But it shows response as -
(no changes, no records)
Please help with the formation of the duplicate query.