getCollection
Retrieves all dataset IDs that belong to a specific collection by calling the platform API. Returns an empty array (not an error) when the collection exists but contains no datasets.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
collectionId | integer | Yes | ID of the collection to retrieve dataset IDs for |
Output
| Field | Type | Description |
|---|---|---|
datasetIds | integer[] | List of dataset IDs belonging to the collection |
count | integer | Number of datasets found |
Example
{
"id": "getCollection",
"type": "getCollection",
"data": {
"label": "Get Collection",
"isExecuted": false,
"handles": ["outputs"],
"schema": {},
"params": {
"collectionId": { "value": 7, "isExpression": false, "isAttachedToInputNode": false }
},
"inputs": [], "outputs": [], "errors": []
},
"position": { "x": 0, "y": 0 },
"isSelected": false,
"isDragging": false
}