Skip to content

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

Description

@judas-christ

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions