Importing Customer Nodes

Importing Customer Nodes

You imported Product nodes in the previous lesson. Now import Customer nodes using the same workflow.

The customers.csv file is already loaded in your Import tool from when you uploaded all files.

Map the Customer node

In the Data Modeling tab:

  1. Click the + Node Label button to add a new node

  2. Set the label: Under Definition, set the label to Customer

  3. Select the table: Under Table, select customers.csv

Configure properties

Use the Map from table button and select these columns:

Column Type Rename To

customerID

String

id

companyName

String

name

contactName

String

country

String

city

String

ID Property

Verify the ID property is set to id and update if necessary.

Run the import

Click the Run Import button. You should see confirmation that 91 Customer nodes were created.

Validate Import

Once you have imported the Customer nodes, click the Check Database button to verify that the task is complete.

Hint

Follow the same steps as the previous lesson where you imported Product nodes.

Make sure to:

  1. Set the label to Customer

  2. Map from customers.csv

  3. Set id as the ID property (renamed from customerID)

  4. Click Preview to review

  5. Click Run Import

Solution

The Customer node should be configured with:

  1. Label: Customer

  2. File: customers.csv

  3. ID property: id

  4. Key properties: name, country, city

After running the import, you should have 91 Customer nodes in your graph.

Download Solution

If you are having trouble, you can download the solution model and open it using the Open model (with data) option.

  1. Download 5-import-customers.zip

  2. In the Import tool, click the 3-dot menu (…​) and select Open model (with data)

  3. Select the downloaded zip file

Summary

You imported Customer nodes into your graph:

  • Created 91 Customer nodes

  • Renamed customerID to id and companyName to name

Next, import Order nodes using the same process.

Chatbot

How can I help you today?

Data Model

Your data model will appear here.