[PR #4435] [MERGED] feat(common): add status code and additional metadata to GraphQL responses #4798

Closed
opened 2026-03-17 02:18:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4435
Author: @barrettluke
Created: 10/13/2024
Status: Merged
Merged: 7/24/2025
Merged by: @jamesgeorge007

Base: nextHead: fix/4395-graphql-sse-status-code


📝 Commits (5)

  • 0ff6df6 fix(graphql): add HttpResponseMeta component for GraphQL responses
  • 9a7342c chore: gql message event document update
  • aa76057 chore: cleanup
  • f54b72c chore: clean up
  • de68a76 chore: cleanup

📊 Changes

4 files changed (+189 additions, -2 deletions)

View changed files

📝 packages/hoppscotch-common/src/components.d.ts (+1 -0)
📝 packages/hoppscotch-common/src/components/graphql/Response.vue (+1 -1)
packages/hoppscotch-common/src/components/graphql/ResponseMeta.vue (+163 -0)
📝 packages/hoppscotch-common/src/helpers/graphql/connection.ts (+24 -1)

📄 Description

Closes HFE-775 #4395

What’s changed

•	Added HttpResponseMeta to Response.vue to handle GraphQL responses for http.
•	Commented out the redundant AppShortcutsPrompt in Response.vue since HttpResponseMeta now covers its functionality.
•	Modified connection.ts in helpers/graphql to format the data for HttpResponseMeta.

Notes to reviewers

•	The AppShortcutsPrompt was redundant with HttpResponseMeta, so it’s only commented out for now to preserve the original logic.
•	Let me know if the data handling in connection.ts for HttpResponseMeta needs any adjustments.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4435 **Author:** [@barrettluke](https://github.com/barrettluke) **Created:** 10/13/2024 **Status:** ✅ Merged **Merged:** 7/24/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `fix/4395-graphql-sse-status-code` --- ### 📝 Commits (5) - [`0ff6df6`](https://github.com/hoppscotch/hoppscotch/commit/0ff6df6b287a3b2c959054e583941e99bbc31421) fix(graphql): add HttpResponseMeta component for GraphQL responses - [`9a7342c`](https://github.com/hoppscotch/hoppscotch/commit/9a7342c7297b82b065e9c3d2e2c614d9372c8d3a) chore: gql message event document update - [`aa76057`](https://github.com/hoppscotch/hoppscotch/commit/aa76057b8bfa6751704767a78e9c8a0863ebf42a) chore: cleanup - [`f54b72c`](https://github.com/hoppscotch/hoppscotch/commit/f54b72cb0f8ec803885d8d960c04663a1e479a87) chore: clean up - [`de68a76`](https://github.com/hoppscotch/hoppscotch/commit/de68a760450df10b6f157b4a9184148669fe9ec6) chore: cleanup ### 📊 Changes **4 files changed** (+189 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components.d.ts` (+1 -0) 📝 `packages/hoppscotch-common/src/components/graphql/Response.vue` (+1 -1) ➕ `packages/hoppscotch-common/src/components/graphql/ResponseMeta.vue` (+163 -0) 📝 `packages/hoppscotch-common/src/helpers/graphql/connection.ts` (+24 -1) </details> ### 📄 Description Closes HFE-775 #4395 What’s changed • Added HttpResponseMeta to Response.vue to handle GraphQL responses for http. • Commented out the redundant AppShortcutsPrompt in Response.vue since HttpResponseMeta now covers its functionality. • Modified connection.ts in helpers/graphql to format the data for HttpResponseMeta. Notes to reviewers • The AppShortcutsPrompt was redundant with HttpResponseMeta, so it’s only commented out for now to preserve the original logic. • Let me know if the data handling in connection.ts for HttpResponseMeta needs any adjustments. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:18:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4798
No description provided.