Content Federation: Merging multiple data sources into one API

preview_player
Показать описание

Content federation is about combining multiple data sources into one handy API. When we do it at the server-level, we call it a custom middleware, when we do it at browser-level we call it multiple API calls. When we combine it at the CMS-level, we call it content federation

What’s that look like? Using Hygraph, we can set up a remote source field. The field is set up to pass an id to a rest or a GraphQL API and then give us access to specific data from Hygraph’s API (with appropriate caching built in)

That way a content editor can edit content, and a developer can get all the data necessary to make interesting experiences for their app or site

For instance, grabbing pull requests for a specific version tag in a changelog or reviews from a 3rd party for e-commerce products

#shorts #headlesscms #graphql
Рекомендации по теме
Комментарии
Автор

That's really cool to be able to merge data like that!

JamesQQuick