strawberry-graphql / strawberry-django

Strawberry GraphQL Django extension
https://strawberry.rocks/docs/django
MIT License
415 stars 120 forks source link

relay pagination #81

Closed productdevbook closed 2 years ago

productdevbook commented 2 years ago

https://relay.dev/ Will you support relay pages?

cursor, is next etc

Upvote & Fund

Fund with Polar

bellini666 commented 2 years ago

Hey, just a quick heads up: I created a very generic relay implementation and also integrated it with strawberry django in here: https://github.com/blb-ventures/strawberry-django-plus

edit: pasted the wrong link

radekwlsk commented 2 years ago

@bellini666 Are you interested in suggesting to merge that relay implementation with the strawberry-graphql/strawberry-graphql-django itself?

bellini666 commented 2 years ago

@radekwlsk not actually. The relay implementation is generic and not attached to django at all, and thus it is being proposed to be merged in the main repository.

Having said that, I'm open to contribute any of the rest of the django specific code there, which also integrates that relay implementation automatically for django types, back to strawberry-graphql-django, as long as there's interest in those features.

la4de commented 2 years ago

Right only offset pagination is currently supported by strawberry-graphql-django. I like the idea of pushing generic relay pagination to the strawberry core which can be then reused in django projects.