Populate components while creating/updating an entry with query engine api

Hello @kumorin,

Instead of using
await strapi.db.query(‘api::hotel.hotel’).update({ data })
use this
await strapi.entityService.update(“api::hotel.hotel”, fetchHotel.id, { data });

The service method is useful while storing data into components.

Hope this helps :slight_smile:

2 Likes