Skip to content

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

@scarf005

Description

@scarf005

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions