How do you create a "*Connection" resolver using t...
# orm-help
m
How do you create a "*Connection" resolver using the new
prisma-client
When I try the following, I get and error:
return context.prisma.postsConnection({ })
Error:
Field 'postsConnection' of type 'PostConnection' must have a sub selection.
Full Repo / File: https://github.com/mikepuglisi/prisma-client-example/blob/master/index.js I've also tried this based on something I found online.
Copy code
return context.prisma.postsConnection({ }, `{
        aggregate {
          count
        }
      }`)