I have been curious about practices people follow ...
# graphql-nexus
j
I have been curious about practices people follow with nexus regarding stuff like pagination. How do folks here implement the common filtering, searching, etc? Some interfaceType all relevant resolvers extends? Or perhaps using nexus's
connectionPlugin
? Or do you redefine the arg-types each time you want to apply the usual
give me 10 of these, where the name starts with Test
r
Hey @Jonathan 👋 I personally use CRUD for the basic types that we define on the model so pagination is provided automatically when I pass the
pagination: true
parameter. The same goes for relations present on the model. I would be curious as well to see an implementation with an
interfaceType
.
j
Hey Ryan! Cheers, I have been meaning to use the
nexus-prisma
plugin. This looks great!
💯 1