Can findmany include within include? Could you giv...
# orm-help
k
Can findmany include within include? Could you give me an example if possible?
r
@kkangsan 👋 Couldn’t quite get your point? Do you want to filter within an include?
💯 1
👍 1
k
https://www.prisma.io/docs/concepts/components/prisma-client/relation-queries
Copy code
const user = await prisma.user.findMany({
  include: {
    posts: {
      include: {
        categories: true,
      },
    },
  },
})
I found an example. I'll try it again in my project😅 If there's a problem, I'll let you know what the problem is with the code later. thanks!
💯 1