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
When using the Javascript Plain API, invoking entry.getMany() should return linked entries and assets in a field named "includes" in the JSON response.
Actual Behavior
The "includes" field is not present in the JSON response.
The result object contains "items" fields with the entry fields as expected - but the entry does not contain an "includes" field with the list of referred entries or assets.
Since I specified "include" in the request, I expected the linked assets would be returned with the entries.
Context
I was referring to this article, and trying to apply it to the Javascript Plain API:
I need to get the list of assets referenced by an entry, without having to know the field names of the entry in advance, and without having to search object keys in the entry.
I need this list of assets so I can easily copy them to another space.
Is there another way to get the list of assets for an entry?
Environment
Language Version: node v16.16.0
Package Manager Version: npm 8.11.0
Browser Version: n/a
Operating System: Windows 10 (64-bit)
Package Version: 10.14.0
Which API are you using?: Management
The text was updated successfully, but these errors were encountered:
Expected Behavior
When using the Javascript Plain API, invoking entry.getMany() should return linked entries and assets in a field named "includes" in the JSON response.
Actual Behavior
The "includes" field is not present in the JSON response.
Steps to Reproduce
This is representative code:
The result object contains "items" fields with the entry fields as expected - but the entry does not contain an "includes" field with the list of referred entries or assets.
Since I specified "include" in the request, I expected the linked assets would be returned with the entries.
Context
I was referring to this article, and trying to apply it to the Javascript Plain API:
https://www.contentful.com/blog/2021/04/14/exploring-linked-entries-assets-contentful/
I need to get the list of assets referenced by an entry, without having to know the field names of the entry in advance, and without having to search object keys in the entry.
I need this list of assets so I can easily copy them to another space.
Is there another way to get the list of assets for an entry?
Environment
The text was updated successfully, but these errors were encountered: