Hi!
Im trying to update all the SubCategories that depends on one Category with bookshelf
const subCategorias = await strapi.query('sub-categoria').model.where({
categoria: categoria.id
}).save(data, {
method: 'update'
})
It successfully updates, but it does not return a list of SubCategories, instead returns one SubCategory but in this form
attributes: [Object: null prototype] {
published_at: null,
updated_at: 2021-07-26T16:47:25.726Z
},