Skip to main content

Get All Datasets Node

Get All Datasets Node Screenshot

Overview

The Get All Datasets Node is used to retrieve all datasets available in the current project. This node is particularly useful when you want to access and manipulate multiple datasets in your graph, or search through all datasets for a specific dataset.

The node requires a dataset provider to be available in the context when the graph is being run. The dataset provider is responsible for managing the storage and retrieval of datasets. In the Rivet application, the dataset provider is handled for you automatically.

For more information on datasets, see the Data Studio section of the user guide.

The Get All Datasets Node does not have any inputs.

Example: Retrieve all datasets in a project

  1. In the Data Studio, create a few datasets with different IDs.
  2. Create a Get All Datasets Node in your graph.
  3. Run the graph. The Datasets output of the Get All Datasets Node should contain an array of all datasets in the current project.

Get All Datasets Node Example

Error Handling

The Get All Datasets Node will error if the dataset provider is not available in the context when the graph is being run.

FAQ

Q: What is a dataset provider?

A: A dataset provider is an object that is responsible for managing the storage and retrieval of datasets. It is passed to the context when the graph is being run. The dataset provider must implement the DatasetProvider interface, which includes methods for getting, putting, and deleting datasets. See the API Reference for more information.

Q: Can I filter the datasets returned by the Get All Datasets Node?

A: No, the Get All Datasets Node will return all datasets in the current project. If you want to filter the datasets, you can use other nodes to process the output of the Get All Datasets Node, such as the Filter Node or Extract Object Path Node

Q: What happens if there are no datasets in the current project?

A: If there are no datasets in the current project, the Datasets output of the Get All Datasets Node will be an empty array.

See Also