Prisma selectors in resolvers

For example for structuring a more rich Graphql API like the one questioned in:

For enhancing (used as a middleware or plug-in in yoga server) an already scaffolded posts resolver that does not only retrieve all the posts using db.posts.findMany() but also provides all the possible filter arguments used by prisma client.