Skip to content

feat: add graphql mode to the query editor#41425

Merged
LagunaElectric merged 1 commit intoreleasefrom
feat/add-graphql-syntax-highlighting
Nov 27, 2025
Merged

feat: add graphql mode to the query editor#41425
LagunaElectric merged 1 commit intoreleasefrom
feat/add-graphql-syntax-highlighting

Conversation

@LagunaElectric
Copy link
Contributor

@LagunaElectric LagunaElectric commented Nov 27, 2025

Description

Added GraphQL support to the query editor.

Fixes #41424

Automation

/ok-to-test tags="@tag.Datasource"

🔍 Cypress test results

Tip

🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/19724400241
Commit: 0a0e95e
Cypress dashboard.
Tags: @tag.Datasource
Spec:


Thu, 27 Nov 2025 04:22:28 UTC

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

  • New Features
    • Added GraphQL syntax support to the code editor, enabling proper syntax highlighting and formatting for GraphQL queries and schemas.

✏️ Tip: You can customize this high-level summary in your review settings.

@LagunaElectric LagunaElectric self-assigned this Nov 27, 2025
@LagunaElectric LagunaElectric added the GraphQL Plugin Issues related to GraphQL plugin label Nov 27, 2025
@LagunaElectric LagunaElectric linked an issue Nov 27, 2025 that may be closed by this pull request
1 task
@github-actions github-actions bot added Enhancement New feature or request Integrations Product Issues related to a specific integration Medium Issues that frustrate users due to poor UX Query Widgets & IDE Pod All issues related to Query, JS, Eval, Widgets & IDE labels Nov 27, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 27, 2025

Walkthrough

Added a GraphQL mode import to the CodeEditor component to enable syntax highlighting for GraphQL queries. The dependency was previously installed but not imported, requiring only a single-line code addition.

Changes

Cohort / File(s) Summary
GraphQL syntax support
app/client/src/components/editorComponents/CodeEditor/index.tsx
Added import for codemirror-graphql/mode to enable GraphQL syntax highlighting in the editor

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

Colors dance in bracket pairs,
GraphQL shines beyond compare,
One line added, light takes flight,
Syntax blooms in editor's sight! ✨

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding GraphQL mode to the query editor, which matches the code modification in the PR.
Linked Issues check ✅ Passed The single-line import addition directly fulfills the linked issue's requirement to import the GraphQL syntax highlighting dependency into the editor and enable it.
Out of Scope Changes check ✅ Passed The only change is the GraphQL mode import, which is directly scoped to the linked issue's requirement. No extraneous modifications detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed PR description includes the issue reference (#41424), a clear summary, automation tags, and Cypress results. All critical sections are present.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/add-graphql-syntax-highlighting

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@LagunaElectric LagunaElectric added the ok-to-test Required label for CI label Nov 27, 2025
@LagunaElectric
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/19724494312.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 41425.
recreate: .

@github-actions
Copy link

Deploy-Preview-URL: https://ce-41425.dp.appsmith.com

@LagunaElectric LagunaElectric merged commit 9864994 into release Nov 27, 2025
55 checks passed
@LagunaElectric LagunaElectric deleted the feat/add-graphql-syntax-highlighting branch November 27, 2025 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request GraphQL Plugin Issues related to GraphQL plugin Integrations Product Issues related to a specific integration Medium Issues that frustrate users due to poor UX ok-to-test Required label for CI Query Widgets & IDE Pod All issues related to Query, JS, Eval, Widgets & IDE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add syntax highlight for GraphQL in the GraphQL query editors

2 participants