APOC.load.csv mapping config regex suggestion

Hello there

While using a lot apoc.load.csv I think it would be really nice to add these config options among the table available in the Table 2. mapping config.

|regex|.*|Apply a simple whole match regex to the field|
|apply|None|Apply a function to the field| <- Using a regex function we won't need the first one anymore.

It would make the mapping options much more powerful and help to keep the consistency of the imports.

1 Like

Yes! Thanks for your post, I just had the exact same idea.

The ability to parse a mapping by applying a function would certainly make queries much cleaner and more re-usable.

1 Like