mikepuglisi
09/21/2018, 7:19 PMprisma-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.
return context.prisma.postsConnection({ }, `{
aggregate {
count
}
}`)