Reviewing the Node.js for data stores, it seems like retrieving all the keys() is possible, but how would one loop through an entire data store?
I tried values() but that isn’t supported, nor is a function like all()
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
props: {
groups: { type: "data_store" },
},
async run({ steps, $ }) {
const groups = await this.groups.all();//This doesn't work but is there another method?
for (const item of groups) {
console.log(item);
}
return steps.trigger.event
},
})