Open kleinspire opened 5 years ago
I was wondering this as well. I miss this kind of pagination in Prisma 2.
So there is no pagination solution currently?
this doesn't work in prisma v1 either, even tho the connection type is generated
i don't know, if this is a prisma2
or nexus2
issue.. I believe, that this has nothing to do with Prisma2
itself. As far as i have understood prisma, it is a database structure language and automatically generated client to access the database. This has - at least in my opinion - nothing to do with "how you query the data" (i.e., the relay pagination style).
the prisma-nexus
client, in turn, should generate the required Connection
elements and make them visible to the graphql server..
All the best
Any solutions on this issue yet?
Hey everyone, I just want to quickly highlight @ctrlplusb's work who wrote a helper to support Relay Cursor Connection Specification type querying: https://gist.github.com/ctrlplusb/17b5a1bd1736b5ba547bb15b3dd5be29 🚀
Following code...
...generates this:
I suppose there is no way to automatically generate Relay style connections for paginating lists so that I can have: