Skip to main content

addData

addData(dataName): Data

Add data to the CausaDB system. This can be either data stored directly on the CausaDB cloud or data stored externally and accessed via credentials.

Parameters

NameTypeDescription
dataNamestringThe name of the data.

Returns

Data

The data object.

Example

const client = new CausaDB();
await client.setToken('test-token-secret');
const data = client.addData('test-data');
await data.fromCSV('path/to/data.csv');