web-ridge / gqlgen-sqlboiler

This is a plugin for gqlgen to generate converts + filter queries and resolvers for sqlboiler
MIT License
75 stars 13 forks source link

Generation of pagination resolver #37

Closed Niich closed 3 years ago

Niich commented 4 years ago

Does gqlgen-sqlboiler currently support the generation of offset pagination resolvers?

I see that sqlboiler-graphql-schema can generate a schema with offset pagination support but the resolvers are not getting created when I run convert.

I didn't see the generation of pagination resolvers on the roadmap or done, so I figured I would ask to see if I'm just missing something or if this feature is not available.

Thanks.

RichardLindhout commented 4 years ago

We don't support it at the moment :( We want pagination too but via edges/connections and cursor based pagination.

https://github.com/web-ridge/gqlgen-sqlboiler/issues/6.

This is important, but I'm short on time at the moment, but I'll definitely add it later!

RichardLindhout commented 3 years ago

I'm slowly building this in the development branch at the moment!

RichardLindhout commented 3 years ago

I'm almost ready with the cursor based pagination I need to work on one issue with custom sorting and some code cleanup

https://github.com/web-ridge/gqlgen-sqlboiler-examples/blob/development/issue-6-edges-connections/resolver.go

I also need extra tests here to make it more future-proof: https://github.com/web-ridge/gqlgen-sqlboiler-examples/blob/development/issue-6-edges-connections/resolver_test.go

RichardLindhout commented 3 years ago

Released in v3.0.0