# Creating nodes and relationships from a map

**URL:** <https://community.neo4j.com/t/creating-nodes-and-relationships-from-a-map/35695>\
**Category:** Newbie Questions\
**Created:** [March 22, 2021, 4:31pm UTC](https://community.neo4j.com/t/creating-nodes-and-relationships-from-a-map/35695 "2021-03-22T16:31:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ameyasoft](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/ameyasoft/32/32639_2.png) [@ameyasoft](https://community.neo4j.com/u/ameyasoft)\
**Post date:** [March 22, 2021, 7:32pm UTC](https://community.neo4j.com/t/creating-nodes-and-relationships-from-a-map/35695/2 "2021-03-22T19:32:48Z")

</div>

Check this link:

> [@Dynamic nodes and building relationships dynamically by Importing data from json files](https://community.neo4j.com/t/dynamic-nodes-and-building-relationships-dynamically-by-importing-data-from-json-files/32558/22):
>
> 1. Edit DataStore file to make this change: Change "DataStore":"Datastore-652" to "DataStore":"DataStore-652" 2. Use this script for UserV. Just create these nodes without any relationships. CALL apoc.load.json("file:///VMDetails.json") YIELD value AS vm MERGE(v:UserV{vmName:vm.vmName}) SET v.CPU= vm.CPU, v.ConnectionState = vm.ConnectionState, v.DataStore = vm.DataStore[0], v.Hostname = vm.Hostname, v.InstanceUuid = vm.InstanceUuid, v.IpAddress = vm.IpAddress, v.Network = vm.Network[0], v.Num…

---

_[View the full topic](https://community.neo4j.com/t/creating-nodes-and-relationships-from-a-map/35695)._
