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
Add GraphQL Support #39
Comments
Agreed |
I just remembered about this wrapper. Why would one use it instead of the official ones? https://github.com/octokit/rest.js First party, well typed, paginated, etc |
@fregante The official clients came out (or rather was officially adopted by GitHub) two years after this package was made. This package is mostly just useful if you want low overhead and just need a couple of API calls. We should definitely add those packages to the readme as recommendations. |
I'm aware, but I'm very quick to deprecate my own packages when I see someone found a better solution. Specifically for this issue I don't think it's a good investment to add GraphQL here when there's already something.
I think
Edit: the install size differs however due to >2 MB of Types in Octokit: https://packagephobia.com/result?p=gh-got |
You're right. No reason to use this package, unless you really want raw access to the endpoints for some reason. And no point in adding more features. |
It would be useful if gh-got provided a
graphql
function that made requests using the GitHub GraphQL API v4.// @sindresorhus
The text was updated successfully, but these errors were encountered: