I’m not sure if this is expected behaviour or i’m setting up my queries wrong but I have the following collections:
  • Static Pages (has a dynamic zone called PageContent)
  • Sites (a site has a relation to many offers)
  • Offers (an offer belongs to only one site)
I then have a custom component which has two string properties and then a repeatable component of site relations.
All data for all collections is in DRAFT state.
everything populates except the offers array, it just returns empty, however if i PUBLISH the items in Offers and Sites (Static Pages can be left in DRAFT), everything populates as i would expect.
Is this the normal behaviour? Is there a way to get the offers relation to populate when in DRAFT state?
I feel like the publicationState must not be passing into the sub selections hence why it returns empty.
Created by Derrick Mehaffy
·