You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created 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
}
}
}
}
}
The text was updated successfully, but these errors were encountered:
I created 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.
Query is
The text was updated successfully, but these errors were encountered: