-
Notifications
You must be signed in to change notification settings - Fork 468
Can't query /shop/ page by contentNode with uri argument when woocommerce is enabled (no wp-graphql-woocommerce required) #1910
Copy link
Copy link
Closed
Labels
component: interfacesRelating to GraphQL Interface TypesRelating to GraphQL Interface Typescomponent: queryRelating to GraphQL QueriesRelating to GraphQL Queriesdep: woocommerceIntegration or compatibility with WooCommerceIntegration or compatibility with WooCommercenot staleShort-circuits stalebot. USE SPARINGLYShort-circuits stalebot. USE SPARINGLYscope: extensionsIntegrating plugins, add-ons, or other extensionsIntegrating plugins, add-ons, or other extensionsstatus: in progressCurrently being worked onCurrently being worked ontype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Milestone
Description
Really strange and specific issue here... thought it might be downstream to wp-graphql-woocommerce and wp-grapql/wp-graphql-woocommerce#491, but it's present even without the downstream plugin enabled.
Steps to replicate:
-
Fresh wordpress 5.7.1 and woocommerce 5.2.2 install with wp-graphql 1.3.8, this triggers some pages to be automatically created, such as
/shop,/cart,/checkoutetc... -
Try to query all content nodes, confirming that the shop page with id of
cG9zdDo0NA==and URI of/shop/shows up.:
- Try to query
contentNodeby URI of/shop/(no wp-graphql-woocommerce enabled):
- Try to query
contentNodeby ID of `` (no wp-graphql-woocommerce enabled):
- Turn woocommerce off, forcing all the default included woocommerce pages to disappear, recreating a "shop" page, and then querying it doesn't seem to do anything. Seems that something has been altered in the database maybe? The query looks identical to step 3, where the SQL trace doesn't seem to even be looking for a content node.
Environment
wp-graphql 1.3.8
wordpress 5.7.1
woocommerce 5.2.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: interfacesRelating to GraphQL Interface TypesRelating to GraphQL Interface Typescomponent: queryRelating to GraphQL QueriesRelating to GraphQL Queriesdep: woocommerceIntegration or compatibility with WooCommerceIntegration or compatibility with WooCommercenot staleShort-circuits stalebot. USE SPARINGLYShort-circuits stalebot. USE SPARINGLYscope: extensionsIntegrating plugins, add-ons, or other extensionsIntegrating plugins, add-ons, or other extensionsstatus: in progressCurrently being worked onCurrently being worked ontype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Type
Projects
Status
✅ Done


