[PR #508] [MERGED] GraphQL query validation based on schema #2663

Closed
opened 2026-03-17 00:20:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/508
Author: @AndrewBastin
Created: 1/19/2020
Status: Merged
Merged: 1/20/2020
Merged by: @AndrewBastin

Base: masterHead: feat/gql-query-schema-val


📝 Commits (3)

  • f0cfee5 Added ability to query editor to validate based on schema
  • 77e51f3 GraphQL page now notifies the query editor about the schema for validation
  • 744d647 GQL Query Editor doesn't give errors for empty queries

📊 Changes

2 files changed (+37 additions, -11 deletions)

View changed files

📝 components/graphql/queryeditor.vue (+35 -11)
📝 pages/graphql.vue (+2 -0)

📄 Description

This PR intends to introduce Query Validation based on schema. Therefore, errors on the query (as long as there are no syntax errors) are reported by evaluating with the schema, this helps catch undefined schema field accessing.

#468


🔄 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/508 **Author:** [@AndrewBastin](https://github.com/AndrewBastin) **Created:** 1/19/2020 **Status:** ✅ Merged **Merged:** 1/20/2020 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `master` ← **Head:** `feat/gql-query-schema-val` --- ### 📝 Commits (3) - [`f0cfee5`](https://github.com/hoppscotch/hoppscotch/commit/f0cfee56f2106d906f00968ce0ef0ac307690016) Added ability to query editor to validate based on schema - [`77e51f3`](https://github.com/hoppscotch/hoppscotch/commit/77e51f330111312be0eda10a57732cd620daa2b6) GraphQL page now notifies the query editor about the schema for validation - [`744d647`](https://github.com/hoppscotch/hoppscotch/commit/744d6477044a2856c4d59d487c6fb406f7aa0f7c) GQL Query Editor doesn't give errors for empty queries ### 📊 Changes **2 files changed** (+37 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `components/graphql/queryeditor.vue` (+35 -11) 📝 `pages/graphql.vue` (+2 -0) </details> ### 📄 Description This PR intends to introduce Query Validation based on schema. Therefore, errors on the query (as long as there are no syntax errors) are reported by evaluating with the schema, this helps catch undefined schema field accessing. #468 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 00:20:51 +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#2663
No description provided.