-
Notifications
You must be signed in to change notification settings - Fork 468
Wpgraphql resover for WoGraphql missing #2447
Copy link
Copy link
Closed
Labels
component: interfacesRelating to GraphQL Interface TypesRelating to GraphQL Interface Typesdep: acfInvolving Advanced Custom Fields functionalityInvolving Advanced Custom Fields functionalitydep: woocommerceIntegration or compatibility with WooCommerceIntegration or compatibility with WooCommercestale?May need to be revalidated due to prolonged inactivityMay need to be revalidated due to prolonged inactivitytype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Description
I create a relationship using ACF between a custom post type (store) has a product. So the store has products. But keep getting this error when trying to query the related products under the Store.
Abstract type Store_StoreListing_RelateProduct must resolve to an Object type at runtime for field Store_StoreListing.relateProduct with value \"instance of WPGraphQL\\Model\\Post\", received \"Product\". Either the Store_StoreListing_RelateProduct type should provide a \"resolveType\" function or each possible type should provide an \"isTypeOf\" function.
Query is
Store{
nodes {
StoreListing{
fieldGroupName
relateProduct {
... on Product {
id
name
}
}
}
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: interfacesRelating to GraphQL Interface TypesRelating to GraphQL Interface Typesdep: acfInvolving Advanced Custom Fields functionalityInvolving Advanced Custom Fields functionalitydep: woocommerceIntegration or compatibility with WooCommerceIntegration or compatibility with WooCommercestale?May need to be revalidated due to prolonged inactivityMay need to be revalidated due to prolonged inactivitytype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Type
Projects
Status
✅ Done