Hey I was wondering how I can implement this filte...
# prisma-whats-new
p
Hey I was wondering how I can implement this filtering behaviour in my own resolvers. So when I am quering ‘posts’ using the prisma generated resolver i can do something like
Copy code
{
  posts {
   id
   comments(first: 2) {
     id
   }
  }
}
But if i create my own resolver, lets say ‘getPosts’, how do can I implement the same filtering behaviour on the comments, so I can write a query like so
Copy code
{
  getPosts {
    id
    comments(first: 2) {
      id
    }
  }
}