Collection

A collection of models, mainly used together with a For Each Node.

Inputs

Modify

Items
Sets the items in a model. Useful when you set the data with a Static Data node.

Item Id
The item id to add or remove. Unsed in conjunction with the Add or Remove inputs.

Add
Add the Model with the id specified with the Item Id input to this collection.

Remove
Remove the Model with the id specified with the Item Id input from this collection.

Clear
Remove all models in the collection

General

Id
Set the Id for this collection. All collection nodes with the same Id will refer to the same collection and have the same items. Use the Unique Id node to generate a unique id.

Persistence
Allows a model to be saved and synchronized across multiple devices and multiple sessions. Note that a collection only stores the ids of models, not the actual data in the models. Make sure to persist the models in the collection as well.

  • None - Don't persist this collection. All data will be lost when refreshing the project, and won't be synchronized across devices.
  • Local - Use the Persist and Fetch inputs to save and retrieve the collection using local storage in the browser. Data is not shared across devices and each device will have its own unique storage.
  • Global - The collection is saved by Noodl and sent shared across all clients. Use the Persist and Fetch inputs to save and retrieve the data in the collection.
  • Sync - Same as global, but the collection will automatically do Persist and Fetch when it's modified.

Outputs

Id
The Id for this Collection

Items
A Noodl.Collection object that can be connected to a Javascript or For Each node.

Count
The number of items in the Collection

Persistence

In Progress
The data is currently being persisted.

Persist Success
The data was successfully stored and persisted.

Persist Failure
The data failed to be saved.

Fetch Success
The data was successfully retrieved from persisted storage.

Fetch Failure
The data failed to be retrieved from persisted storage.

Sign up to noodl newsletter

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.