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

Menu filters not working with wordpress-source-experimental plugin

Open tiggeymone opened this issue 3 years ago • 4 comments

Hello, thank you for this awesome plugin.

I just figured out that I can filter menu items by language when using the WPGraphiql plugin IDE: Screenshot 2021-02-05 at 19 17 52

Unfortunately the same filter seems to be unavailable using the gatsby-source-wordpress-experimental plugin. The language filter works for all the other types, such as posts, pages etc:

Screenshot 2021-02-05 at 19 19 09

Is there any reason why the wordpress-source-experimental plugin isn't recognizing this filter?

Thank you in advance

tiggeymone avatar Feb 05 '21 18:02 tiggeymone

To my knowledge gatsby-source-wordpress-experimental uses the graphql fields exposed by wp-graphql so it should just work, but I have not used gatsby-source-wordpress-experimental so I'm not sure it does something weird before it calls the wp-graphql fields.

esamattis avatar Feb 15 '21 10:02 esamattis

I am having the same issue.

However, I am using their new gatsby-source-wordpress release

dannyvaughton avatar Mar 30 '21 11:03 dannyvaughton

Hello, I created an issue in the gatsby monorepo, because the new gatsby-source-wordpress plugin is now included within it. You can find the issue here: https://github.com/gatsbyjs/gatsby/issues/30597. I've found that the problem is not just on menu items, but also in some other content types, such as contentNodes. This makes really difficult to create a query scoped by language for multiple post types that should support pagination.

Assuming that most of the filters are correctly introspected by gatsby-source-wordpress, IMHO it could be some problem related on how some fields are exposed by this plugin.

Any kind of help will be really appreciated!

Thank you in advance

tiggeymone avatar Apr 02 '21 14:04 tiggeymone

Any updates on this one?

sidyes avatar Jan 15 '22 20:01 sidyes