Headless Content Delivery using Content Fragments with GraphQL

With Content Fragments and the GraphQL API you can use Adobe Experience Manager (AEM) as a Cloud Service as a Headless Content Management System (CMS).

This is achieved using Content Fragments, together with the AEM GraphQL API (a customized implementation, based on standard GraphQL), to headlessly deliver structured content for use in your applications. The ability to customize a single API query allows you to retrieve and deliver the specific content that you want/need to render (as the response to the single API query).

OBSERVAÇÃO

Headless CMS

A Headless Content Management System (CMS) is:

​* **

🔗

In terms of authoring Content Fragments in AEM this means that:

  • You can use Content Fragments to author content that is not primarily intended to be directly published (1:1) on formatted pages.

  • The content of your Content Fragments will be structured in a predetermined manner - according to the Content Fragment Models. This simplifies access for your applications, which will further process your content.

GraphQL - An Overview

O GraphQL é:

  • "…um idioma de consulta para APIs e um tempo de execução para realizar essas consultas com seus dados existentes.".

    Consulte GraphQL.org

🔗 🔗 The content returned can then be used by your applications.

AEM GraphQL API

For Adobe Experience as a Cloud Experience, a customized implementation of the standard GraphQL API has been developed. 🔗

🔗

Content Fragments for use with the AEM GraphQL API

🔗

  • They enable you to design, create, curate and publish page-independent content.
  • 🔗
  • 🔗

Fragmentos de conteúdo

Fragmentos de conteúdo:

  • Contain structured content.

  • 🔗

Modelos de fragmentos do conteúdo

🔗

  • 🔗

  • Provide the data types and fields required for GraphQL. They ensure that your application only requests what is possible, and receives what is expected.

  • 🔗

Fragment References

🔗

  • Is of particular interest in conjunction with GraphQL.

  • Is a specific data type that can be used when defining a Content Fragment Model.

  • References another fragment, dependent on a specific Content Fragment Model.

  • Allows you to retrieve structured data.

Visualização JSON

🔗

Saiba como usar o GraphQL com o AEM - Exemplos de conteúdo e consultas

🔗

Tutorial - Introdução ao AEM Headless e GraphQL

Procurando um tutorial prático? Veja o tutorial completo de Introdução ao AEM Headless e GraphQL que ilustra como criar e expor conteúdo usando as APIs GraphQL do AEM e consumi-lo por meio de um aplicativo externo, em um cenário de CMS headless.

Nesta página