Skip to content

why doesn't graphql.js return OctokitResponse? #655

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

Open
scarf005 opened this issue May 2, 2025 · 1 comment
Open

why doesn't graphql.js return OctokitResponse? #655

scarf005 opened this issue May 2, 2025 · 1 comment

Comments

@scarf005
Copy link

scarf005 commented May 2, 2025

related: #329

Image

unlike octokit's REST endpoint, octokit's graphql API returns only the data field. i'm curious why graphql endpoint doesn't return OctokitResponse by itself? this makes examining headers complicated.

return response.data.data;

@octokit
Copy link

octokit bot commented May 2, 2025

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Triage
Development

No branches or pull requests

1 participant