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
Thanks for letting us know about this issue, I've talked with one of our backend engineers about the topic and he requested if you could open a ticket in https://support.contentful.com
On the ticket please provide your Space ID, and you can use this Github issue as a reference.
Consider the following:
ModelA
contains optional link to resource of typeModelB
nyancat
is of typeModelA
and contains DRAFT content of typeModelB
When we fetch the content, we get some metadata in return:
We see this output in reference to the draft content:
For published content, I'd except to see:
Since draft content is not published, this should operate as if the content does not exist.
Draft content should not be returned from the Content Delivery API
Ref: https://www.contentful.com/developers/docs/tutorials/general/determine-entry-asset-state/
content.signup
should be omitted altogether since it's in draft stateThe problem this causes for me is that there is no way to determine if I should use fallback data.
My check for
if content and content.fields().get("signup")
should fail allowing me to properly set a default value.However:
content.fields().get('signup')
existscontent.signup.fields()
does not (sincesignup
is a dict here)The text was updated successfully, but these errors were encountered: