wp-graphql / wp-graphql-woocommerce

Add WooCommerce support and functionality to your WPGraphQL server
https://woographql.com
GNU General Public License v3.0
633 stars 123 forks source link

Field "offsetPagination" is not defined by type RootQueryToProductUnionConnectionWhereArgs. #861

Closed ZeroPie closed 1 month ago

ZeroPie commented 1 month ago

Describe the bug Hey i updated from v0.15 to v0.20 and it seems i cannot use offsetPagination anymore.

To Reproduce Steps to reproduce the behavior:

  1. Install wp-graphql-woocommerce v0.2.0 and install https://github.com/valu-digital/wp-graphql-offset-pagination
  2. query products using offsetPagination
  3. See error
Field "offsetPagination" is not defined by type
"RootQueryToProductUnionConnectionWhereArgs".

Expected behavior offsetPagination is part of "RootQueryToProductUnionConnectionWhereArgs".

Screenshots CleanShot 2024-05-24 at 07 49 37

CleanShot 2024-05-24 at 07 49 05

Desktop (please complete the following information):

Plugin Versions 0.20.0

Additional context I did try reinstalling https://github.com/valu-digital/wp-graphql-offset-pagination

ZeroPie commented 1 month ago

Okey, i had to patch the Loader.php in https://github.com/valu-digital/wp-graphql-offset-pagination https://gist.github.com/ZeroPie/9870b323c14262e6df19d44bf72d8445