wp-graphql-polylang icon indicating copy to clipboard operation
wp-graphql-polylang copied to clipboard

Querying menuItems with location and language does not work with wp-graphql 1.26.0 and wp-graphql-polylang v0.6.0

Open judas-christ opened this issue 9 months ago • 0 comments

I accidentally updated wp-graphql from 1.25.0 to 1.26.0 and discovered that querying menuItems using location and language does not work anymore on v0.6.0. Downgrading to 1.25.0 works.

Reproduce by creating a site with a couple of languages and a menu. Open GraphiQL and run this query, where MAIN_MENU is the menu location and EN is the non-default language:

menuItems(where: { location: MAIN_MENU, language: EN }) {
  nodes {
    locations
  }
}

This will return a correct result in 1.25.0 but an incorrect one on 1.26.0.

judas-christ avatar May 14 '24 06:05 judas-christ