OR filters in GraphQL searchItems are missing validation
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

monospaced textSteps to replicate the issue (include links if applicable):

{
  searchItems( query: { or: [
    { value: "pot" }, 
    { value: "ato" }
  ] } ) {
    edges {
      node {
        id
      }
    }
  }
}

What happens?:

Internal server error

What should have happened instead?:

There should be a validation error saying that the property/value filter is missing a property field.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia): current master

Event Timeline

Jakob_WMDE set the point value for this task to 3.Jun 30 2026, 12:06 PM
Jakob_WMDE moved this task from Polished to Ready for planning on the Wikibase Reuse Team board.
kimpham moved this task from Ready for planning to Sprint 74 on the Wikibase Reuse Team board.
kimpham moved this task from To Do to Doing on the Wikibase Reuse Team (Sprint 74) board.
kimpham updated the task description. (Show Details)

Change #1319447 had a related patch set uploaded (by Kim.pham; author: Kim.pham):

[mediawiki/extensions/Wikibase@master] GQL: Handle OR filter validation when property is missing

https://gerrit.wikimedia.org/r/1319447

Change #1319447 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] GQL: Handle OR filter validation when property is missing

https://gerrit.wikimedia.org/r/1319447

tried it with bruno and slightly edited examples - works as expected