Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking to entries with the same content model ignores the include parameter in getEntries creating circular references #1943

Open
Zac-Nourish opened this issue Jun 21, 2023 · 1 comment

Comments

@Zac-Nourish
Copy link

Expected Behavior

When requesting entries from Contentful with getEntries() with an include parameter, all Links only resolve to the includes depth.

Actual Behavior

Entries with Links to the same content type resolve to an infinite level.

Possible Solution

Steps to Reproduce

  1. Create a space with a Content Model Test that has a Link property to to other entries of with type Test
  2. Create two entries A and B. Have A link to B and B link to A.
  3. Call getEntries with an include parameter of 0.
  4. See the response has a circular reference when it should not resolve any links at all.

Context

We are trying to create a resource that links to other related resources.

Environment

  • Language Version: v16.19.0
  • Package Manager Version: 8.19.3
  • Package Version: 10.2.3
  • Which API are you using?: Delivery
@emilsbee
Copy link

Facing the same issue. Seems like the include parameter doesn't do anything at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants