Skip to content

GraphQL response metadata/annotation #6147

Open
@jychen7

Description

@jychen7

Is your feature request related to a problem? Please describe.
In REST api, the query response of /v1/load contains whether it is slow query and serving from external storage.
https://github.com/cube-js/cube.js/blob/c4f51f457dbebec60f4848b951d2604de2512631/packages/cubejs-api-gateway/src/gateway.ts#L1534-L1536

However, in GraphQL api, seems this information is missing. This information is quite useful to monitor how many queries hitting the pre-aggregation/rollup.

Describe the solution you'd like
I understand GraphQL response body is align with the request. However, is it possible to include this in response header?

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api:graphqlIssues related to GraphQL APIenhancementNew feature proposalhelp wantedCommunity contributions are welcome.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions