Skip to content

Changing key for children? #22

@faaizajaz

Description

@faaizajaz

How can I specify the key for my child nodes? For example, currently this requires us to have data in the form:

{
    "id": 0,
    "children": [
        {
            "id": 1,
            "children": []
        }
    ]
}

I want to be able to specify that nodes are found under the "nodes" key. So I want my starting data to look like this:

{
    "id": 0,
    "nodes": [
        {
            "id": 1,
            "nodes": []
        }
    ]
}

Is there any way to do this without modifying the source?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions