Skip to content

Map Unflatten Function #69

@ThomasMatlak

Description

@ThomasMatlak

Feature description (Mandatory)

Add a function to unflatten a Map from dot-notation. The inverse of operation of apoc.map.flatten.

Considered alternatives

I could use non-flattened maps for my use case, but that would require some heavily nested apoc.map.merge and apoc.map.setKey calls.

How this feature can improve the project?

Users will be able to go from a flattened map

{
    "key": "value",
    "nested.key": "anotherValue",
    "nested.anotherKey": "yetAnotherValue"
}

to a regular map

{
    "key": "value",
    "nested": {
        "key": "anotherValue",
        "anotherKey": "yetAnotherValue"
     }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions