Skip to content

Add dynamic labels set from list example in the LOAD CSV section #1189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
matea16 opened this issue Mar 13, 2025 · 0 comments · Fixed by #1278
Closed

Add dynamic labels set from list example in the LOAD CSV section #1189

matea16 opened this issue Mar 13, 2025 · 0 comments · Fixed by #1278
Assignees

Comments

@matea16
Copy link
Contributor

matea16 commented Mar 13, 2025

With the new dynamic labels set from the list feature, we can now list multiple labels in one cell of the CSV file we're importing.
Todo: add an example of that under LOAD CSV section of the docs.

Context

Query example:

LOAD CSV FROM "/data.csv"
WITH HEADER AS row
WITH {labels: convert.str2object(row.label)} AS metadata, row
CREATE (n:metadata.labels {name: row.name, id: toInteger(row.id)})
RETURN n;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant