You can use Model.findOneAndModify(): const dancingTopic = await Topic.findOneAndModify( { name: 'Dancing' }, {}, { upsert: true, new: true } ) This will either...
PostgreSQL has built-in support for full text search, which can be used to achieve what you want. However, Prisma has only a limited support for PostgreSQL full...