How could one set up a text filter, for example, a...
# orm-help
n
How could one set up a text filter, for example, a text input that filters on a title after displaying findMany?
n
Hey Nick 👋, You could use full-text search functionality that filters on title field. It should look something like:
Copy code
// All posts that contain the word 'prisma nextjs'.
const result = await prisma.posts.findMany({
  where: {
    title: {
      search: 'prisma nextjs',
    },
  },
})
Please let me know in case you face any issues.