So I want to create 'n' number of nodes for 'n' number of days starting from a fixed start date (say 2020-01-01) to a fixed end date (current day).
How can I do this in a smart way (by using some kind of loop). I tried using UNWIND, but that seems to need me to create a list of all date first and then iterate through that. I want to avoid doing that kind of manual work.
Thanks!
============================================================================
Please keep the following things in mind:
- did you search for what you want to ask before posting?
- please use tags for additional info
- use a self-descriptive title
Please format code + Cypher statements with the code </>
icon, it's much easier to read.
Please provide the following information if you ran into a more serious issue:
- neo4j version, desktop version, browser version
- what kind of API / driver do you use
- screenshot of
PROFILE
orEXPLAIN
with boxes expanded (lower right corner) - a sample of the data you want to import
- which plugins / extensions / procedures do you use
- neo4j.log and debug.log