Without using Mongoose directly, your update query should use the ID instead of the title for the update request
strapi.query('restaurant').findOne({ id: 1 });
strapi.query('restaurant').update(
{ id: 1 },
{
title: 'restaurant name',
}
);
Without using Mongoose directly, your update query should use the ID instead of the title for the update request
strapi.query('restaurant').findOne({ id: 1 });
strapi.query('restaurant').update(
{ id: 1 },
{
title: 'restaurant name',
}
);