await strapi.query(‘message’).model.updateMany({ conversation:conversation, sender:{$ne:user},is_read:false },{is_read:true});
this is the solution…
with the .model you access all methods of the documentation
mongoosejs:
https://mongoosejs.com/
await strapi.query(‘message’).model.updateMany({ conversation:conversation, sender:{$ne:user},is_read:false },{is_read:true});
this is the solution…
with the .model you access all methods of the documentation
mongoosejs:
https://mongoosejs.com/