I have 3 json files in which I have created different set of nodes I wanted to know if I could dynamically create relationship by writing a query using loops
Thanks in Advance
Yes, you can do that using APOC. I've linked a couple of examples below. The one article is a bit older, but the syntax should still hold true.
(last example here): apoc.merge.relationship - APOC Extended Documentation
Cheers,
Jennifer
Please check cypher ref card for detailed syntax.