Contentful logo

Contentful Community

Incoming Links; able to list entries that link to this entry?

#1

So according to this article, we’re able to query content by providing an ID of the linking entry.

However, is it at all possible to grab the entries that link to one particular entry within the SDK.

To clarify, am I able to access the parent link entry from this child entry, via the CDA?
35%20am

I know I can create a join table between parent and child entry, but was wondering if I could achieve the above? Thanks in advance.

Edit: I’m aware of using _backrefs in the cf-graphql, but wondering if this feature is available yet in the CDA SDK?

0 Likes

#2

Hi @apps,

We offer the links_to_entry parameter through the CDA - do you think that helps with your use case?

https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/links-to-entry

0 Likes

#3

links_to_entry only works to grab the entry that is being linked, by providing the ID of the entry that it is linked to. However, I want to grab the latter entry (the entry that it is linked to). How am I able to do so, only given the former entry (the entry that is being linked)?

0 Likes