apoc.load.arrow

Details

Syntax

apoc.load.arrow(file [, config ]) :: (value)

Description

Imports NODE and RELATIONSHIP values from the provided arrow file.

Input arguments

Name

Type

Description

file

STRING

The name of the file to import data from.

config

MAP

This value is never used. The default is: {}.

Return arguments

Name

Type

Description

value

MAP

A map of data loaded from the given file.

Usage Examples

Given an arrow file named test.arrow that contains people and their properties:

test.arrow
name,age,beverage
Selma,9,Soda
Rana,12,Tea,Milk
Selina,19,Cola

We’ll place this file into the import directory of our Neo4j instance.

We can load this file and return the contents by running the following query:

CALL apoc.load.arrow('test.arrow') YIELD value
RETURN value;
Results
value

{name: "Selma", age: "9", beverage: "Soda"}

{name: "Rana", age: "12", beverage: "Tea;Milk"}

{name: "Selina", age: "19", beverage: "Cola"}