[PR #598] [CLOSED] Save GraphQL schema and response in state #2732

Closed
opened 2026-03-17 00:24:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/598
Author: @dihmeetree
Created: 2/24/2020
Status: Closed

Base: masterHead: feature/fix-gql-state


📝 Commits (2)

  • 21c6c07 Save GraphQL schema and response in state
  • 403254a Change from v-model to value as this is not set by the user

📊 Changes

2 files changed (+57 additions, -38 deletions)

View changed files

📝 pages/graphql.vue (+30 -13)
📝 store/state.js (+27 -25)

📄 Description

Allows the user to go to any page, and back to the GraphQL page, without having to re-request the schema or response. This PR saves the schema and response into the gql state when they are requested.

To test: Go to the GraphQL page and request the schema or run a query. Go to any page, or refresh, and the schema and response should be there.


🔄 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/598 **Author:** [@dihmeetree](https://github.com/dihmeetree) **Created:** 2/24/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature/fix-gql-state` --- ### 📝 Commits (2) - [`21c6c07`](https://github.com/hoppscotch/hoppscotch/commit/21c6c07b3970252f10e3a5269e8372991b7dd2ca) Save GraphQL schema and response in state - [`403254a`](https://github.com/hoppscotch/hoppscotch/commit/403254a983986b8afa20435b0a48f496c06c9637) Change from v-model to value as this is not set by the user ### 📊 Changes **2 files changed** (+57 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `pages/graphql.vue` (+30 -13) 📝 `store/state.js` (+27 -25) </details> ### 📄 Description Allows the user to go to any page, and back to the GraphQL page, without having to re-request the schema or response. This PR saves the schema and response into the `gql` state when they are requested. **To test**: Go to the GraphQL page and request the schema or run a query. Go to any page, or refresh, and the schema and response should be there. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 00:24:40 +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#2732
No description provided.