Working with Collections
const transformHook = (rw) => {
const { tags } = rw.collections;
// Example: Create an array of tag names
const tagNames = tags.map(tag => tag.name);
rw.setProps({
tagNames
});
}
exports.transformHook = transformHook;const transformHook = (rw) => {
rw.setProps({
...rw.collections
});
}
exports.transformHook = transformHook;Last updated
Was this helpful?

