graphql.js icon indicating copy to clipboard operation
graphql.js copied to clipboard

why doesn't graphql.js return `OctokitResponse`?

Open scarf005 opened this issue 8 months ago • 1 comments

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.

https://github.com/octokit/graphql.js/blob/e4a3c302922958de967e080b796e03605a98192d/src/graphql.ts#L89

scarf005 avatar May 02 '25 16:05 scarf005

👋 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! 🚀

octokit[bot] avatar May 02 '25 16:05 octokit[bot]