I have a model A, that references model B ( 1-to-many). I have a webhook set up so that when content for model B is created ( on A ), an API will receive the request, using the information for entry B can get the information for it’s parent entry A. At which point I then want to add some information to entry B based on A.
When I add a reference to B on A, A’s state is now changed and B is unpublished.
In the webhook, I can access entry B fine with the Content Preview API, but when I try to search for the entries that link to unpublished entry B, I get nothing back.
const entries = await this.contentfulPreviewClient.getEntries({
links_to_entry: data.sys.id,
});
Is this not possible? Are references not part of Contentful Preview API?