-
Notifications
You must be signed in to change notification settings - Fork 30
🚧 Initial version #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi @gr2m @NickLiffen ! Is this still a plan? Or it's too complicated to handle and there won't be an official pagination helper? octokit/graphql.js#61 (comment) I would be interested in collaborate on it if it's going to move forward and if it's possible. Thanks |
Right now I think it's too complicated. We'd probably be better of by creating good tutorials on how to paginate with the current |
Yep,I read the thread on the original issue. I just wanted to know if there were news on this. Maybe this repo should be archieved? Thanks for your answer! |
I didn't give up hope just yet. I intend to write some tutorials myself, unless someone beats me to it ;) |
I have zero knowledge on GraphQL right now but I’m catching up with it (as doing with TypeScript xD) so if you think I can help to draft these docs... I’m in! :) |
1 similar comment
I have zero knowledge on GraphQL right now but I’m catching up with it (as doing with TypeScript xD) so if you think I can help to draft these docs... I’m in! :) |
Here is the recording of Rea's talk I mentioned in the thread at octokit/graphql.js#61 Basically I'd convert these to a set of tutorials. Giving Rea full credit of course. |
I watched the talk yesterday. Super cool talk. Ok about the tutorials but... not sure which structure to follow. Is there any other repo on Octokit with tutorials to follow the approach? I will draft an index proposal so we can start discussing it! :) |
Not really, I wish there was though. I published a few tutorial-esque posts to https://dev.to/gr2m/. If you write some up we can just list them in the README.md of https://github.com/octokit/graphql.js for now |
Sure! Let me draft some initial posts and we can discuss it together :) |
@gr2m we have this wonderful pagination script over at release-drafter: Should be flexible enough for most cases. Apart from sub pagination but could properly be fixed easily. |
Thanks a lot for sharing Joseph! I've currently very limited availability, but I will get back to you. I'm looking forward to it! |
@jetersen I was wondering if we could avoid the extra In the case of your query at https://github.com/release-drafter/release-drafter/blob/master/lib/commits.js, instead of using |
@gr2m I am all for generalizing graphql pagination! Having conventions for cursor variables would make absolute sense and would even support sub pagination :) |
Hi @gr2m! can I help here with anything? I use GraphQL pagination in a few places in my code and have this functionality reimplemeted a couple of times. It would be nice to have it as a reusable plugin. |
Absolutely! It’s all yours :) And you’d be perfect to build it as you have the real life examples as a test |
If it helps, this is how we are thinking about implementing it for our github singer tap |
🎉 This issue has been resolved in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
feat: ...
commits for each feature of the initial versionhttps://www.npmjs.com/settings/<your npm username>/tokens/create
(with "Read and Publish" selected) and add it asNPM_SECRET
at Then create secret at https://github.com/octokit/plugin-paginate-graphql.js/secretsSee this comment for how we can build GraphQL pagination by utilizing a naming convention for cursor variables:
octokit/graphql.js#61 (comment)
Particularly
closes https://github.com/octokit/maintainers/issues/31