GraphQL filter for filtering entries by linked references
Blog post from Contentful
You want to filter blog posts by linked topic using the GraphQL API, but the documentation states that it's not possible to filter on fields of Type Array<Link>. However, you can use the linkedFrom field to achieve this. To do so, first query your topicCollection and then fetch a single topic by slug. Then, request the blog post collection items that reference the referenced topic using the linkedFrom field. This allows you to effectively retrieve all entries that reference entries of Type Array<Link>.
No tracked trend matches for this post yet.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.