Skip to content

cube.list ​

Lists every cube in the model.

js
cube.list()

Returns ​

string

The cubes as a JSON string, read with JSON.parse(). Each cube has an id and name.

Examples ​

js
const cubes = JSON.parse(cube.list());
json
[
    { "id": "c-1a2b3c", "name": "Finance" },
    { "id": "c-4d5e6f", "name": "Sales" }
]