Skip to content

Deprecate graphql_raw_query - #2215

Merged
dirkkul merged 2 commits into
mainfrom
feat/deprecate-graphql-raw-query
Oct 23, 2026
Merged

dirkkul merged 2 commits into
mainfrom
feat/deprecate-graphql-raw-query

Conversation

@g-despot

Copy link
Copy Markdown
Collaborator

Emits a deprecation warning (Dep031) when graphql_raw_query is called. We're retiring GraphQL, so the method will be removed in a release after May 1, 2027. The warning points to the collection query methods, the REST Search API and the migration guide.

@orca-security-eu orca-security-eu Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused changes follow existing warning conventions, preserve query execution, and have no identified blocking issues.

No open issues 🎉

What changed in this PR

Deprecates graphql_raw_query() ahead of GraphQL retirement, with removal planned for a release after May 1, 2027.

Changes:

  • Emits Dep031 with replacement APIs and a migration guide.
  • Documents the deprecation in the method docstring and changelog.
File Description
weaviate/​warnings.py Defines the Dep031 deprecation warning.
weaviate/​client_executor.py Emits the warning and documents the deprecation.
docs/​changelog.rst Announces deprecation and replacement APIs.

Review effort: Balanced

@dirkkul
dirkkul force-pushed the feat/deprecate-graphql-raw-query branch from 52e604b to e1728bd Compare October 23, 2026 08:20
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.03%. Comparing base (74eed97) to head (4cda91e).
⚠️ Report is 53 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2215      +/-   ##
==========================================
+ Coverage   88.98%   89.03%   +0.04%     
==========================================
  Files         308      309       +1     
  Lines       24396    24551     +155     
==========================================
+ Hits        21709    21858     +149     
- Misses       2687     2693       +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dirkkul
dirkkul merged commit dec586f into main Oct 23, 2026
128 checks passed
@dirkkul
dirkkul deleted the feat/deprecate-graphql-raw-query branch October 23, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants