In Luzmo all columns which deal with text values are of type hierarchy. On such a hierarchy column you can build a hierarchy out of your existing data values. To do so you first need to create hierarchy levels and associate them with a column. By associating hierarchy levels with a column we essentially define how many levels there are in the tree structure and define the metadata of these levels. Afterwards you can push hierarchy updates to the column to populate the tree structure using the hierarchy service .
Updating the hierarchylevels, if you update the 'level' make sure you update the other hierarchylevels so the level numbers follow up nicely.
npm install @luzmo/nodejs-sdk{
"id": "c25b2053-a44e-4748-8310-1a797f6d16ed",
"level": 0,
"name": {
"nl": "Alle",
"fr": "Tout",
"en": "All"
},
"cardinality": 1,
"created_at": "2018-08-30T08:05:38.381Z",
"updated_at": "2018-08-30T08:05:38.381Z",
"column_id": "c442c981-7bdf-4a53-929b-d39bf6256f8f",
"color": null
}