I'm trying to return an object with an array of object from another query but I get the error:
getUsersGroups: Failed to execute 'postMessage' on 'Window': # could not be cloned.
I don't think there is anything wrong with the syntax - is this a Retool limitation?
const promises = users.map((user) => {
return {
user: user.id,
groups: getUserGroups.trigger({
additionalScope: {
userId: user.id,
},
}),
};
});
return Promise.all(promises);