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

Not working with WPGraphQL ACF #838

Closed Quinesee closed 5 months ago

Quinesee commented 5 months ago

Describe the bug When I have both WPGraphQL ACF and WPGraphQL WooCommerce active at the same time, I get the following error:

{
  "errors": [
    "Interface field Connection.nodes expects type [Node!]! but CustomerToOrderConnection.nodes is type [Order!]!.",
    "Interface field Connection.nodes expects type [Node!]! but OrderConnection.nodes is type [Order!]!.",
    "Interface field Edge.node expects type Node! but OrderConnectionEdge.node is type Order!.",
    "Interface field Edge.node expects type Node! but CustomerToOrderConnectionEdge.node is type Order!.",
    "Interface field Connection.nodes expects type [Node!]! but RootQueryToOrderConnection.nodes is type [Order!]!.",
    "Interface field Edge.node expects type Node! but RootQueryToOrderConnectionEdge.node is type Order!."
  ]
}

If I deactivate either plugin, the error goes away and I an query the endpoint and use GraphiQL IDE.

To Reproduce Steps to reproduce the behavior:

  1. Install WPGraphQL ACF
  2. Install WPGraphQL WooCommerce
  3. Go to GraphiQL IDE
  4. See error

Expected behavior For both plugins to coexist

Plugin Versions

Quinesee commented 5 months ago

Seems like the new updates from WPGraphQL (1.20.0) and WPGraphQL ACF (2.1.0) fixed this issue! Closing issue.