This repository was archived by the owner on Jul 23, 2024. It is now read-only.
This repository was archived by the owner on Jul 23, 2024. It is now read-only.
Post Object field and Relationship field return null for arrays. #155
Closed
Description
I’m trying to relate products from within a Flexible Content field in ACF. That works when querying a single product with ACF Post Object by setting “Select multiple values?” to No.
However, when querying for multiple values, instead of an array of product objects, I get null in WPGraphiQL.
Same happens if using ACF Relationship Field, which I think always returns an array. The result is the same for simple and variable products.
This should be easy to replicate as it happens to me however I define my field groups
Using
WPGraphQL 0.10.2
wp-graphql-woocommerce 0.5.1
wp-graphql-acf 0.3.4